body {
    font-family: -apple-system, BlinkMacMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #E1FFB1; 
    border-bottom: 2px solid #ccc;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 1.8em;
    color: #333;
    margin: 0;
}

.verein-logo {
    max-width: 300px; 
    height: auto;
    max-height: 80px; 
    object-fit: contain;
}

.logo-container {
    display: flex;
    flex-direction: column; 
    align-items: center;
    text-align: center;
}

.verein-subtitle {
    font-size: 1em;
    color: #333;
    margin: 5px 0 0 0;
    font-weight: 600;
}

.title-box-form {
    background-color: #e8e8e8;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
    text-align: center;
}

.title-box-form h2 {
    font-size: 1.6em;
    color: #333;
    margin: 0;
    font-weight: 700;
}

.form-section {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #ffffff;
}

.form-section h2 {
    color: #007bff; 
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    margin-top: 0;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
    display: flex;
    align-items: center;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
    font-size: 1em;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #007bff;
    outline: none;
}

select:disabled {
    background-color: #eee;
    color: #777;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-group label {
    display: inline;
    font-weight: normal;
    margin-bottom: 0;
    display: inline; 
    align-items: initial;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.kind-fields-container {
    border-left: 3px solid #ffc107;
    padding-left: 15px;
    margin-left: 5px;
    margin-bottom: 20px;
}

.order-item {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 6px;
    background-color: #fafafa;
}

.order-item fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.order-item legend {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 10px;
}

.product-selection-grid {
    display: grid;
    grid-template-columns: 160px repeat(6, 1fr); 
    gap: 15px;
    margin-bottom: 15px;
    align-items: start;
}

.product-selection-grid .form-group:nth-child(2) { grid-column: 2 / 4; grid-row: 1; } 
.product-selection-grid .form-group:nth-child(3) { grid-column: 4 / 6; grid-row: 1; } 
.product-selection-grid .form-group:nth-child(4) { grid-column: 6 / 8; grid-row: 1; } 
.product-selection-grid .form-group:nth-child(5) { grid-column: 2 / 4; grid-row: 2; } 
.product-selection-grid .form-group:nth-child(6) { grid-column: 4 / 6; grid-row: 2; } 
.product-selection-grid .quantity-group.form-group:nth-child(7)  { grid-column: 6 / 8; grid-row: 2; } 

.product-image-preview {
    grid-column: 1 / 2; 
    grid-row: 1 / span 4;
    display: flex;
    align-items: center; 
    justify-content: center;
    height: 100%;
    padding-top: 5px;
    position: relative; 
}

.image-placeholder-text {
    text-align: center;
    font-size: 0.9em; 
    color: #888;
    line-height: 1.2;
    padding: 10px;
    max-width: 150px; 
    display: block; 
}

.product-variant-image {
    width: 160px; 
    height: 160px; 
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: zoom-in; 
}

.item-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}

.item-summary .subtotal {
    color: #28a745; 
}

.totals-box {
    text-align: right;
    font-size: 1.4em;
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-top: 20px;
}

.totals-box #total-sum {
    color: #dc3545; 
    font-weight: bolder;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-add {
    background-color: #007bff;
    color: white;
    margin-bottom: 20px;
}

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

.order-item .btn-remove { 
    background-color: #f8d7da;
    color: #721c24; 

    width: auto !important; 

    display: inline-block !important;   
    
    font-size: 1em; 
    padding: 10px; 
    margin-top: 10px; 
}

.order-item .btn-remove:hover {
    background-color: #f5c6cb;
}

.btn-remove:hover {
    background-color: #f5c6cb;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #28a745; 
    color: white;
    font-size: 1.2em;
    margin-top: 20px;
}

.btn-submit:hover {
    background-color: #1e7e34;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert.error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert.success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.slideshow-container {
    max-width: 1200px;
    margin: auto;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.slideshow {
    position: relative;
}

.slide {
    display: none;
    text-align: center;
}

.slide img {
    width: 50%;
    height: 399px;
    object-fit: cover;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.4);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.modal {
    display: none; 
    position: fixed;
    z-index: 1000; 
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.9); 
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px; 
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.size-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    font-size: 0.8em;
    font-weight: bold;
    cursor: pointer;
    margin-left: 5px;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.size-info-icon:hover {
    background-color: #0056b3;
}

@media (max-width: 992px) {
    .container {
        padding: 15px;
        margin: 10px;
    }
}

@media (max-width: 768px) {
    .product-selection-grid {
        grid-template-columns: 1fr; 
        gap: 10px;
    }

    .product-image-preview {
        grid-column: 1 / -1 !important; 
        grid-row: auto !important; 
        grid-row-start: auto !important;
        grid-row-end: auto !important;
        
        height: auto;
        margin-bottom: 15px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    .product-image-preview img {
        width: 120px; 
        height: 120px;
        display: block;
        margin: 0 auto;
    }
    
    .image-placeholder-text {
        text-align: center;
        max-width: 100%; 
        margin: 0 auto;
    }

    .product-selection-grid .form-group {
        grid-column: 1 / -1 !important; 
        grid-row: auto !important; 
        grid-row-start: auto !important;
        grid-row-end: auto !important;

        margin-bottom: 15px;
        
        width: 100%;
        display: block; 
    }
    
    .item-summary {
        display: flex; 
        justify-content: space-between;
        align-items: center;
    }

    .slide img {
        height: 250px; 
    }
    
    .checkbox-group {
        display: block; 
    }
    
    .checkbox-group input[type="checkbox"] {
        float: left; 
        margin-right: 10px;
        margin-top: 2px;
    }
    
    .checkbox-group label {
        display: block;
        margin-left: 25px; 
        word-wrap: break-word;
        
        display: block; 
        align-items: initial;
    }

    .checkbox-group.dsgvo-consent {
        clear: both; 
    }

    .form-group label .size-info-icon {
        float: right; 
        margin-top: -3px; 
    }
}

.disclaimer-note {
    width: 100%; 
    max-width: 1200px; 
    margin: 20px auto 0; 
    padding: 10px 20px;
    
    font-size: 0.85em; 
    color: #6c757d; 
    text-align: center;
    line-height: 1.4;
    box-sizing: border-box; 
}

@media (max-width: 576px) {
    .disclaimer-note {
        padding: 10px 10px; 
    }
}

footer {
    width: 100%;
    margin-top: 30px;
    padding-bottom: 20px;
    background-color: #f4f7f6; 
}

footer .container {
    padding: 10px 20px;
    text-align: center;
    font-size: 0.85em;
    color: #666;
    border-top: 1px solid #ccc;
    background-color: transparent; 
    box-shadow: none; 
}

footer a {
    color: #007bff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.is-invalid {
    border: 2px solid #dc3545 !important; 
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.5);
}

.error-field {
    border: 2px solid #dc3545 !important; 
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.custom-error-message {
    color: #dc3545; 
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.modal-inner-content {
    margin: auto;
    width: 90%;
    max-width: 900px;
}

.modal-content-area {
    display: none; 
    background-color: #fefefe;
    margin: 60px auto 0; 
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 900px; 
    text-align: left; 
}

.modal-content-area .modal-title {
    color: #007bff;
    text-align: center;
    margin-top: 0;
    margin-bottom: 5px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.modal-content-area .modal-subtitle {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
}

.modal-content-area .size-group-title {
    color: #333;
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
    border-left: 5px solid #007bff;
    padding-left: 10px;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.95em;
    table-layout: auto; 
}

.size-table th, .size-table td {
    border: 1px solid #ddd;
    padding: 8px 4px; 
    text-align: center;
}

.size-table thead th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #ccc;
}

.size-table .head-size-col {
    text-align: left;
    font-weight: bold;
    background-color: #e9ecef;
}

.size-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.size-table .na {
    background-color: #ccc; 
    color: #888;
    font-weight: bold;
    content: "X"; 
}

@media (max-width: 768px) {
    .modal-content-area {
        margin: 20px auto 0;
        padding: 10px;
        width: 95%;
    }
    
    .size-table {
        font-size: 0.8em;
    }
}