/* Allgemeine Stile */
body {
    background-color: #222;
    color: white;
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h3 {
    text-align: center;
}

form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.order {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.order-container {
    background-color: #292d36;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    width: 80%;
}

/* Produktliste */
.products {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product {
    border: 2px solid #444;
    border-radius: 10px;
    padding: 15px;
    position: relative;
    transition: background-color 0.3s ease;
}

.product:hover {
    background-color: #333;
}

/* Checkbox und Produktlayout */
.product input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #555;
    border-radius: 50%;
    position: relative;
    background: none;
    transition: background 0.3s, border-color 0.3s;
}

.custom-checkbox::after {
    content: '';
    width: 12px;
    height: 12px;
    background: #0f9d58;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.product input[type="checkbox"]:checked + label .custom-checkbox {
    border-color: #0f9d58;
    background: #0f9d58;
}

.product input[type="checkbox"]:checked + label .custom-checkbox::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Produktinformationen */
.product label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.product-image img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.product-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-text span:first-child {
    font-weight: bold;
    font-size: 1rem;
}

.product-text span:last-child {
    font-size: 0.9rem;
    color: #bbb;
}

.product-text span:nth-child(3) {
    font-size: 0.9rem;
    color: #bbb;
}

/* Größe Auswahl und Tabelle */
.size-menu {
    display: none;
    margin-top: 10px;
}

.size-menu select {
    width: 100%;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #333;
    color: white;
    font-size: 1rem;
    margin-bottom: 10px;
}

/* Container für die Tabelle */
.size-chart-container {
    width: 100%; /* Stelle sicher, dass der Container 100% der Breite einnimmt */
    overflow-x: auto;  /* Ermöglicht horizontales Scrollen innerhalb des Containers */
    -webkit-overflow-scrolling: touch; /* Für sanftes Scrollen auf iOS-Geräten */
    margin: 20px 0; /* Abstand oben und unten */
}

.size-chart {
    width: 100%;
    min-width: 700px; /* Verhindert, dass die Tabelle zu schmal wird */
}

.size-chart table {
    width: 100%;
    border-collapse: collapse; /* Vermeidet doppelte Ränder */
}

.size-chart th, .size-chart td {
    border: 1px solid #777;
    padding: 10px;
    text-align: center;
    color: white;
    background-color: #333;
}

.size-chart th {
    font-weight: bold;
    background-color: #444;
}

.size-chart td {
    background-color: #555;
}

/* Hover-Effekt für Zeilen */
.size-chart tr:hover {
    background-color: #666;
}

/* Auf mobilen Geräten: Scrollbare Tabelle */
@media (max-width: 768px) {
    .size-chart-container {
        overflow-x: auto; /* Scrollen aktivieren */
    }

    .size-chart table {
        min-width: 700px; /* Verhindert, dass die Tabelle zu schmal wird */
    }

    .size-chart th, .size-chart td {
        padding: 12px 8px;
    }
}

@media (max-width: 480px) {
    .size-chart th, .size-chart td {
        font-size: 12px; /* Verkleinert die Schriftgröße auf sehr kleinen Geräten */
    }

    .size-chart td {
        padding: 8px 5px;
    }
}


.product input[type="checkbox"]:checked ~ .size-menu .size-chart {
    max-height: 400px;
    overflow: visible;
}

/* Zahlungsoptionen im gleichen Design wie die Produkt-Checkboxes */
.payment-options {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-method {
    border: 2px solid #444;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    position: relative;
}

.payment-method:hover {
    background-color: #333;
}

.payment-method input[type="radio"] {
    display: none; /* Verstecke den Standard Radio Button */
}

.payment-method label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    width: 100%; /* Stellt sicher, dass das Label den gesamten Bereich einnimmt */
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #555;
    border-radius: 50%;
    position: relative;
    background: none;
    transition: background 0.3s, border-color 0.3s;
}

.payment-method input[type="radio"]:checked + label .custom-checkbox {
    border-color: #0f9d58;
    background: #0f9d58;
}

.payment-method input[type="radio"]:checked + label .custom-checkbox::after {
    content: '';
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.payment-method span {
    color: white;
    font-size: 1rem;
    font-weight: bold;
}

/* Optional: Anpassung bei Hover */
.payment-method:hover .custom-checkbox {
    border-color: #0f9d58;
}

.payment-method input[type="radio"]:checked + label .custom-checkbox {
    background-color: #0f9d58;
}

.payment-method input[type="radio"]:checked + label .custom-checkbox::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Standardmäßig sind die Zahlungsinformationen ausgeblendet */
.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payment-method input[type="radio"]:checked + label + .payment-info {
    display: flex;
    margin-top: 10px; /* Adds space between method and info */
}

.payment-info {
    display: none;
    text-align: center;
}


/* Submit-Button */
.submit-button {
    width: 100%;
    padding: 10px 20px;
    background-color: #0f9d58;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.submit-button:hover {
    background-color: #0c7a43;
}

.payment-logo {
    width: 25px;
}

.personal-information {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
}

/* Stil für jedes Input-Feld */
.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    margin-right: 7px;
    width: 99%;
}

.input-group label {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

/* Styling für die Eingabefelder */
.input-group input {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    height: 30px;
    background-color: #292d36;
    color: white;
}

/* Fokus-Effekt für Eingabefelder */
.input-group input:focus {
    border-color: #0f9d58;
    box-shadow: 0 0 5px rgba(15, 157, 88, 0.5);
}

/* Optional: Erhöhen der Schriftgröße und Hintergrundfarbe der Eingabefelder */
.input-group input::placeholder {
    font-size: 0.9rem;
    color: #888;
}
