/* order-form.css */
.container {
    max-width: 1200px; /* Adjust based on preference */
    margin: auto; /* Center align the container */
}

/* order-form.css */
.alert-success {
    color: #155724; /* Dark green text color for better contrast */
    background-color: #d4edda; /* Light green background */
    border-color: #c3e6cb; /* Slightly darker green border for definition */
    padding: 10px;
    border-radius: 5px; /* Rounded corners */
    margin-bottom: 20px; /* Space below the alert */
    font-weight: bold; /* Make the text bold */
}


/* order-form.css */
.alert-danger {
    color: #721c24; /* Dark red text color for contrast */
    background-color: #f8d7da; /* Light red background */
    border-color: #f5c6cb; /* Slightly darker red border for definition */
    padding: 10px;
    border-radius: 5px; /* Rounded corners */
    margin-bottom: 20px; /* Space below the alert */
    font-weight: bold; /* Make the text bold */
}

.caption {
    font-size: 0.85rem; /* Smaller font size for caption */
    color: #666; /* Subtle text color for less emphasis */
    margin-top: 5px; /* Space between the input field and the caption */
    font-style: italic; 
}



.order-form-title {
    text-align: center;
    margin-bottom: 40px;
}

.table {
    box-shadow: 0 2px 4px rgba(0,0,0,.1); /* Subtle shadow for the table */
    border-collapse: collapse; /* Collapse borders */
    width: 100%; /* Full width of its container */
    margin-bottom: 200px; /* Space below the table */
    display: block;
    font-size: .9rem;

}
/* Fix the header */
.table thead {
    display: block;
}

/* Make tbody scrollable */
.table tbody {
    display: block;
    /*max-height: 1500px;
    overflow-y: auto;*/
}

.table th, .table td {
    border: 1px solid #f0f0f0; /* Light border for table cells */
    padding: 8px; /* Padding within cells */
    text-align: left; /* Align text to the left within cells */
    width: 20%; /* Adjust based on the number of columns and total width */

}

.table th {
    text-align: center; /* Zentriert den Text in Kopfzellen */
    background-color: #f8f9fa;
    color: #333;
    padding: 8px;
}

.table td {
    text-align: left; /* Links ausgerichteter Text in Zellen */
    border: 1px solid #f0f0f0;
    padding: 8px;
}
.quantity-input {
    width: auto; /* Setzt die Breite des Input-Felds auf automatisch */
    max-width: 60px; /* Maximale Breite des Input-Felds */
}

.table .group-header th {
    padding-left: 2rem;
    opacity: .9;
    cursor: pointer;
}

.table .sortiment-header th {
    cursor: pointer;
}

.table h3 {
    margin-bottom: .5rem;
}

.table .group-header th:hover {
    text-decoration: underline;
}

.table .sortiment-header th:hover {
    text-decoration: underline;
}


.table img {
    width: 100px; /* Fixed width for images */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Cover the area without losing aspect ratio */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto; /* Allow table to scroll horizontally on small screens */
    }
}

@media (max-width: 480px) {
    .table th, .table td {
        padding: 4px; /* Smaller padding for very small screens */
    }
}


/* order-form.css additions */

/* Alignment for the Place Order button */
.text-right {
    text-align: right; /* Aligns content to the right */

}
.table {
    padding-bottom: 100px;
    margin-bottom: 100px; /* Adjust based on the size of your sticky button */
}
/*
.sticky-submit {
    position: fixed;
    bottom: 5px;
    right: 20px;
    z-index: 100;
}*/

/* Styling for the Place Order button */
.btn-primary {
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    border-color: #000; /* Black border */
    transition: all 0.3s ease; /* Smooth transition for effects */
}

/* Smaller button size */
.btn-smaller {
    padding: 0.75rem 1.5rem; /* Decreased padding to reduce button size by 25% */
    font-size: 1.125rem; /* Decreased font size to match the smaller button */
    border-radius: 0.25rem; /* Adjusted border-radius for aesthetic */
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #333; /* Darker background on hover for interaction feedback */
    color: #ddd; /* Lighter text on hover for better contrast */
    border-color: #333; /* Darker border on hover */
}


/* order-form.css */
.container {
    max-width: 1200px; /* Adjust based on preference */
    margin: auto; /* Center align the container */
    padding: 20px;
}

/* Alert success */
.alert-success {
    color: #155724; /* Dark green text color for better contrast */
    background-color: #d4edda; /* Light green background */
    border-color: #c3e6cb; /* Slightly darker green border for definition */
    padding: 10px;
    border-radius: 5px; /* Rounded corners */
    margin-bottom: 20px; /* Space below the alert */
    font-weight: bold; /* Make the text bold */
}

/* Alert danger */
.alert-danger {
    color: #721c24; /* Dark red text color for contrast */
    background-color: #f8d7da; /* Light red background */
    border-color: #f5c6cb; /* Slightly darker red border for definition */
    padding: 10px;
    border-radius: 5px; /* Rounded corners */
    margin-bottom: 20px; /* Space below the alert */
    font-weight: bold; /* Make the text bold */
}

/* Table styles */
.table {
    box-shadow: 0 2px 4px rgba(0,0,0,.1); /* Subtle shadow for the table */
    border-collapse: collapse; /* Collapse borders */
    width: 100%; /* Full width of its container */
    margin-bottom: 20px; /* Space below the table */
}

.table th, .table td {
    border: 1px solid #f0f0f0; /* Light border for table cells */
    padding: 8px; /* Padding within cells */
    text-align: left; /* Align text to the left within cells */
}

.table th {
    background-color: #f8f9fa; /* Light background for header cells */
    color: #333; /* Color for header text */
}

/* Basisstil für den Bildcontainer */
.product-hover {
    position: relative; /* Ermöglicht absolute Positionierung der Beschreibung innerhalb des Containers */
    display: inline-block; /* Erlaubt das Hinzufügen von Hover-Effekten */
}

/* Optional: Animation für das Ein- und Ausblenden */
.tooltip.show {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* Erweitern des vorhandenen Stils */
.table img {
    width: 100px;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease; /* Glatter Übergang für das Zoomen */
    border: 3px solid transparent; /* Vorbereitung für den Rahmen */
}

.table img:hover {
    transform: scale(5); /* Vergrößert das Bild beim Hover */
    transform-origin: left center; /* Setzt den Ursprung der Transformation zum rechten Rand */
    z-index: 100; /* Stellt sicher, dass das vergrößerte Bild über anderen Inhalten schwebt */
    border-color: #f0f0f0; /* Fügt einen Rahmen hinzu, Farbe nach Wunsch anpassbar */

}

.product-description {
    display: none; /* Versteckt die Beschreibung standardmäßig */
    text-align: center; /* Zentriert den Text */
    font-size: 0.9rem; /* Anpassbare Schriftgröße */
    position: absolute; /* Ermöglicht die Platzierung direkt unter dem Bild */
    width: 100%; /* Stellt sicher, dass die Breite der Beschreibung der des Bildes entspricht */
    left: 0; /* Zentriert die Beschreibung horizontal */
    top: 105%; /* Positioniert die Beschreibung unter dem Bild */
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto; /* Allow table to scroll horizontally on small screens */
    }
}

@media (max-width: 480px) {
    .table th, .table td {
        padding: 4px; /* Smaller padding for very small screens */
    }
}

/* New styles */

/* General form styling */
.form-title {
    text-align: center;
    margin-bottom: 10px;
}

.form-row {
    display: flex;
    justify-content: space-between; /* This separates the two fields nicely */
    gap: 20px; /* Adds some space between the fields */
}

.half-width {
    flex: 1; /* Makes each child of .form-row take up equal space */
}


.form-group input, .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.submit-btn:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.kundennummer-wrapper {
    max-width: 300px; /* Adjust the width as needed */
    margin: 0 auto; /* Centers the wrapper, and thus the input, within its container */
}


.address-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.address-section {
    flex: 1;
    padding: 0 15px;
}


.form-group {
    text-align: left; /* Ensures text within the form-group aligns to the left */
    display: flex; /* Utilizes flexbox for layout */
    flex-direction: column; /* Stacks elements vertically */
    align-items: flex-start; /* Aligns items to the start of the flex container (left side) */
    max-width: 2000px; /* Adjust based on your preference */
    margin: 0; /* Adjusts the margin as needed */
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 5px; /* Space between label and input field */
}


.form-top-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Sorgt dafür, dass die Inhalte bei kleineren Bildschirmen untereinander angezeigt werden */
}

.kundennummer-group, .bemerkung-group, .email-group {
    flex-basis: 48%; /* Belegt standardmäßig etwa die Hälfte des verfügbaren Raumes, mit etwas Platz dazwischen */
}

.bemerkung-group {
    flex: 1 0 100%; /* Allows the item to grow and ensures it takes full width */
}


@media (max-width: 768px) {
    .kundennummer-group, .bemerkung-group {
        flex-basis: 100%; /* Bei kleineren Bildschirmen nehmen beide Elemente die volle Breite ein */
    }
}


.gesamtsumme {
    background-color: #f8f9fa; /* Light background for header cells */
}

#email_rechnungsadresse {

    color: #333;
    background-color: #f8f9fa;
}




label[for="email_rechnungsadresse"] {
    font-weight: bold; /* macht den Text fett, um Wichtigkeit zu betonen */
}