/* NFC-Vorschau Styling */

.nfc-preview-container {
    position: sticky;
    top: 20px;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nfc-preview-container h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.phone-mockup {
    background: #e8e8e8;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-width: 360px;
    margin: 0 auto;
    border: 1px solid #ccc;
    position: relative;
    overflow: hidden;
}

.nfc-header {
    background: #2c2c2c;
    color: white;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
}

.nfc-blood-warning {
    background: #f5f5f5;
    padding: 16px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #ddd;
}

.nfc-content {
    padding: 0;
}

.nfc-row {
    background: white;
    padding: 14px 16px;
    border-bottom: 1px solid #ddd;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    text-align: left;
}

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

.nfc-row.hidden {
    display: none;
}

.nfc-label {
    font-weight: 500;
    color: #333;
}

.nfc-value {
    color: #555;
}

/* Modal für mobile Ansicht */
.preview-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.preview-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-modal-content {
    background-color: #f5f5f5;
    margin: 20px;
    padding: 20px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.preview-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.preview-modal-close:hover {
    color: #000;
}

.preview-toggle-btn {
    display: none;
    background: #2c2c2c;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin: 20px auto;
    width: 100%;
    max-width: 300px;
}

.preview-toggle-btn:hover {
    background: #404040;
}

/* Responsive */
@media (max-width: 1200px) {
    .nfc-preview-container {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .phone-mockup {
        max-width: 100%;
    }
    
    /* Grid-Layout auf eine Spalte umstellen */
    .nfc-form-grid {
        grid-template-columns: 1fr !important;
        padding: 0 10px !important;
    }
    
    /* Auf mobilen Geräten: Vorschau ausblenden und Button anzeigen */
    .nfc-preview-container {
        display: none;
    }
    
    .preview-toggle-btn {
        display: block;
    }
}
