/* Kontakt (expresspolsterei-mathan-ritter.de) — extrahiert aus index.html Z. 4286-4888 */

/* Kontaktformular Modal Styles */
        .kontakt-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 10001;
            overflow-y: auto;
            animation: kontaktFadeIn 0.3s ease;
        }

        @keyframes kontaktFadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .kontakt-modal-dialog {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .kontakt-modal-content {
            background: #ffffff;
            width: 100%;
            max-width: 1200px;
            max-height: 90vh;
            border-radius: 16px;
            box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            animation: kontaktSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes kontaktSlideIn {
            from {
                transform: translateY(50px) scale(0.95);
                opacity: 0;
            }

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

        /* Header */
        .kontakt-modal-header {
            background: linear-gradient(135deg, #e42025 0%, #8c1b1c 100%);
            color: #000000;
            padding: 24px 32px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .kontakt-modal-header h2 {
            margin: 0;
            font-size: 26px;
            font-weight: 600;
        }

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

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

        /* Body */
        .kontakt-modal-body {
            display: flex;
            flex: 1;
            overflow: hidden;
        }

        /* Info Section */
        .kontakt-info-section {
            width: 380px;
            padding: 32px;
            background: #f8f9fa;
            overflow-y: auto;
            border-right: 1px solid #e9ecef;
        }

        .kontakt-info-box {
            background: white;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
            border: 1px solid #e0e0e0;
        }

        #openingHoursModal {
          font-family: "Roboto", sans-serif;
          font-size: 1.7rem;
          line-height: 1.4;
          color: rgba(0, 0, 0, 0.8);
        }

        .kontakt-info-box h3 {
            color: #2c3e50;
            font-size: 20px;
            margin-bottom: 12px;
        }

        .kontakt-info-box h4 {
            color: #495057;
            font-size: 16px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .kontakt-info-box h4 i {
            color: #e42025;
        }

        .kontakt-info-box p {
            color: #666;
            line-height: 1.6;
            margin: 0;
        }

        /* Form Section */
        .kontakt-form-section {
            flex: 1;
            padding: 32px 40px;
            overflow-y: auto;
        }

        .kontakt-form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }

        .kontakt-form-group {
            margin-bottom: 20px;
        }

        .kontakt-form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
            font-size: 15px;
        }

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

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

        .kontakt-form-group input:focus,
        .kontakt-form-group textarea:focus,
        .kontakt-form-group select:focus {
            outline: none;
            border-color: #e42025;
            box-shadow: 0 0 0 4px rgba(228, 32, 37, 0.1);
        }

        .kontakt-form-group textarea {
            resize: vertical;
            min-height: 120px;
        }

        /* File Upload */
        .kontakt-file-upload {
            border: 2px dashed #e0e0e0;
            border-radius: 8px;
            padding: 30px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            background: #fafafa;
        }

        .kontakt-file-upload:hover {
            border-color: #e42025;
            background: #fffbf0;
        }

        .kontakt-file-upload.dragover {
            background: #e8f5e9;
            border-color: #e42025;
        }

        .kontakt-file-upload-inner i {
            font-size: 48px;
            color: #e42025;
            margin-bottom: 15px;
        }

        .kontakt-file-upload-inner p {
            margin: 0 0 5px 0;
            color: #666;
            font-size: 16px;
        }

        .kontakt-file-upload-inner small {
            color: #999;
            font-size: 14px;
        }

        /* File List */
        .kontakt-file-list {
            margin-top: 15px;
        }

        .kontakt-file-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            background: #f8f9fa;
            border-radius: 6px;
            margin-bottom: 8px;
        }

        .kontakt-file-item-name {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #333;
        }

        .kontakt-file-item-name i {
            color: #666;
        }

        .kontakt-file-remove {
            background: none;
            border: none;
            color: #dc3545;
            cursor: pointer;
            padding: 4px 8px;
            transition: all 0.2s;
        }

        .kontakt-file-remove:hover {
            background: rgba(220, 53, 69, 0.1);
            border-radius: 4px;
        }

        /* Checkbox */
        .kontakt-checkbox-item {
            display: block;
            margin-bottom: 12px;
            cursor: pointer;
        }

        .kontakt-checkbox-item input[type="checkbox"] {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

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

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

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

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

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

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

        .kontakt-checkbox-box span:last-child {
            line-height: 1.5;
            color: #333;
        }

        .kontakt-checkbox-box a {
            color: #901b1c;
            text-decoration: underline;
        }

        /* Error Messages */
        .kontakt-error-msg {
            display: none;
            color: #dc3545;
            font-size: 14px;
            margin-top: 5px;
        }

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

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

        /* Buttons */
        .kontakt-buttons {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 20px;
        }

        .kontakt-btn {
            /*padding: 14px 24px;*/
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-decoration: none;
        }

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

        .kontakt-btn-primary {
            background: linear-gradient(135deg, #e42025 0%, #e42025 100%);
            color: #fff;
        }

        .kontakt-btn-primary:hover:not(:disabled) {
            background: linear-gradient(135deg, #e42025 0%, #e42025 100%);
            color: #fff;
        }

        .kontakt-btn-secondary {
            background: #e42025
            color: #fff;
            width: 100%;
        }

        .kontakt-btn-secondary:hover:not(:disabled) {
            background: #e42025
        }

        /* Button Sizes */
        .kontakt-btn-small {
            padding: 5px 15px;
            font-size: 14px;
            width: auto;
        }

        .kontakt-btn-large {
            flex: 1;
            padding: 5px 15px;
            font-size: 17px;
            font-weight: 600;
        }

        /* Button Group */
        .kontakt-button-group {
            display: flex;
            gap: 15px;
            margin-top: 30px;
            align-items: center;
        }

        /* Form Info */
        .kontakt-form-info {
            background: #f8f9fa;
            padding: 12px 16px;
            border-radius: 6px;
            margin-top: 20px;
        }

        .kontakt-form-info p {
            margin: 0;
            color: #666;
            font-size: 14px;
        }

        /* Success Modal */
        .kontakt-success-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 10002;
            align-items: center;
            justify-content: center;
        }

        .kontakt-success-content {
            background: white;
            padding: 40px;
            border-radius: 16px;
            text-align: center;
            max-width: 400px;
            width: 90%;
            animation: kontaktBounceIn 0.5s ease;
        }

        @keyframes kontaktBounceIn {
            0% {
                transform: scale(0.9);
                opacity: 0;
            }

            50% {
                transform: scale(1.05);
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        .kontakt-success-icon {
            font-size: 64px;
            color: #e42025;
            margin-bottom: 20px;
        }

        .kontakt-success-content h3 {
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 24px;
        }

        .kontakt-success-content p {
            color: #666;
            margin-bottom: 25px;
            line-height: 1.6;
        }

        /* Responsive */
        @media (max-width: 992px) {
            .kontakt-modal-body {
                flex-direction: column;
            }

            .kontakt-info-section {
                width: 100%;
                border-right: none;
                border-bottom: 1px solid #e9ecef;
                padding: 20px;
            }

            .kontakt-form-section {
                padding: 20px;
            }

            .kontakt-buttons {
                flex-direction: row;
                gap: 15px;
            }

            .kontakt-btn-secondary {
                width: auto;
                flex: 1;
            }
        }

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

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

            .kontakt-form-row {
                grid-template-columns: 1fr;
            }

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

            .kontakt-btn {
                width: 100%;
            }

            .kontakt-checkbox-wrapper {
                align-items: flex-start;
            }

            .kontakt-checkbox-wrapper input[type="checkbox"] {
                margin-top: 0;
            }
        }

        /* Scrollbar */
        .kontakt-info-section::-webkit-scrollbar,
        .kontakt-form-section::-webkit-scrollbar {
            width: 6px;
        }

        .kontakt-info-section::-webkit-scrollbar-track,
        .kontakt-form-section::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        .kontakt-info-section::-webkit-scrollbar-thumb,
        .kontakt-form-section::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 3px;
        }

        .kontakt-info-section::-webkit-scrollbar-thumb:hover,
        .kontakt-form-section::-webkit-scrollbar-thumb:hover {
            background: #555;
        }


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

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

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

body.kontakt-standalone .kontakt-modal, body.kontakt-standalone #kontakt-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.kontakt-standalone .kontakt-modal-dialog {
    min-height: auto !important;
    display: block !important;
    padding: 0 15px !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
}

body.kontakt-standalone .kontakt-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.kontakt-standalone .kontakt-modal-header {
    display: none !important;
}

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

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

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