/* Globale Stile & Mobile-First Defaults */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f8;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.back-button {
    display: inline-block;
    background-color: #6c757d;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    margin: 15px 0 0 15px;
    transition: background-color 0.3s, transform 0.2s;
    float: left;
    clear: both;
}

.back-button:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.container {
    background-color: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
    text-align: center;
}

h1 {
    color: #0056b3;
    margin-bottom: 5px;
    font-size: 1.8rem;
}

p {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#macInput {
    padding: 10px 15px;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
    max-width: 400px;
    background-color: #f8f9fa;
    color: #333;
    text-align: center; /* Zentriert den Input-Text */
}

#macInput:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
    text-align: left;
}

.format-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.format-item label {
    font-size: 0.85rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.format-item input[type="text"] {
    font-size: 1rem; /* Größe erhöht */
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
    cursor: default;
    text-align: center; /* Zentriert den Output-Text */
}

#vendorLookup h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #0056b3;
    font-size: 1.4rem;
}

.vendor-info {
    text-align: left;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.vendor-info p {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.hidden {
    display: none !important;
}

/* Media Queries für größere Bildschirme */
@media (min-width: 600px) {
    body {
        align-items: center;
        padding: 40px;
    }

    .container {
        padding: 30px 40px;
    }

    h1 {
        font-size: 2.2rem;
    }

    p {
        font-size: 1rem;
    }
    
    .back-button {
        position: absolute;
        top: 30px;
        left: 30px;
        margin: 0;
        float: none;
        clear: none;
    }
}