* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide number input spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    min-height: 100vh;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Main Layout Improvements */
.calculator-section {
    padding: 1rem 0;
    background: #ffffff;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.glass-configuration {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.glass-configuration > h2,
.glass-configuration > h3 {
    color: #1a202c;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    padding-bottom: 0.75rem;
    position: relative;
}

.glass-configuration > h2::after,
.glass-configuration > h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #4299e1, #3182ce);
    border-radius: 2px;
}

/* Header & Navigation */
header {
    background: #ffffff;
    color: #1a202c;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e2e8f0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
    position: relative;
}

nav a:hover {
    color: #3182ce;
}

nav a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #3182ce;
    border-radius: 1px;
}

/* Language Switcher */
.language-switcher {
    margin-left: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-btn {
    background: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-width: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: auto;
    line-height: 1.5;
    border-radius: 6px;
}

.lang-dropdown-btn:hover {
    color: #000000;
    background: #f5f5f5;
    border-color: #cccccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.lang-dropdown-btn .flag {
    font-size: 1.2rem;
    line-height: 1;
    display: inline-block;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

.lang-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.lang-dropdown-btn .lang-code {
    font-weight: 500;
    color: #333333;
}

.lang-dropdown-btn .dropdown-arrow {
    font-size: 0.75rem;
    color: #666666;
    transition: transform 0.2s ease;
    margin-left: 0;
}

.lang-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.25rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.lang-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
}

.lang-option:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.lang-option:first-child {
    border-radius: 8px 8px 0 0;
}

.lang-option:hover {
    background-color: #f9fafb;
    color: #1f2937;
}

.lang-option.active {
    background-color: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

.lang-option .flag {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-option .lang-name {
    flex: 1;
}

/* Auto-detected language indicator */
.lang-dropdown-btn.auto-detected::before {
    content: '●';
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.6rem;
    color: #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Legacy button styles - keep for backwards compatibility */
.lang-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.lang-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lang-btn.active {
    background: #3182ce;
    color: white;
    border-color: #3182ce;
    box-shadow: 0 1px 3px rgba(49, 130, 206, 0.3);
}

.lang-btn.active:hover {
    background: #2c5aa0;
    border-color: #2c5aa0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #4b61a2 100%);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Calculator Sections - Duplicate removed, handled above */

.calculator-section > h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a202c;
    font-size: 2rem;
    font-weight: 700;
}

.calculator-form {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #374151;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}

button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 1rem;
}

button:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Calculator Buttons Container */
.calculator-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Heat Protection & Checkbox Styling */
.checkbox-group {
    background: #fef3c7;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #fbbf24;
    margin: 1rem 0;
    transition: all 0.2s ease;
}

.checkbox-group:hover {
    border-color: #f59e0b;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.1);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #f59e0b;
    border-radius: 3px;
}

/* Glass Edge Section Styling */
.glass-edge-section {
    background: #ecfdf5;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #10b981;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

.glass-edge-section:hover {
    border-color: #059669;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.glass-edge-section h5 {
    color: #065f46;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.glass-edge-section h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #10b981;
    border-radius: 1px;
}

.glass-edge-section > .form-group {
    max-width: 300px;
    margin: 0 auto 1.5rem auto;
}

.glass-edge-section > .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #10b981;
    border-radius: 6px;
    font-size: 1rem;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
}

.glass-edge-section > .form-group select:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.glass-edge-section > .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #065f46;
    text-align: center;
}

/* PDF Download Button */
.pdf-download-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0;
}

.pdf-download-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.pdf-download-btn:active {
    transform: translateY(0);
}

/* Postal code group styling */
#postal-code-group {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    width: 100%;
    box-sizing: border-box;
}

#postal-code-group input {
    margin-bottom: 0.5rem;
}

#delivery-location-display {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

/* Additional calculator buttons styling for layout fixes */
.calculator-buttons {
    clear: both; /* Ensure buttons appear below all floating elements */
    margin-top: 2rem; /* Extra spacing from content above */
}

/* Ensure all form groups follow normal document flow */
.form-group {
    position: static;
    width: 100%;
    margin-bottom: 1rem;
}

/* Responsive adjustments for buttons */
@media (min-width: 768px) {
    .calculator-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }

    .calculator-buttons button {
        flex: 1;
        max-width: 300px;
    }
}

/* Glass Type Selection Styles */
.glass-type-section {
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #28a745;
    margin-bottom: 2rem;
}

.glass-type-section h3 {
    color: #155724;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    border-bottom: 2px solid #28a745;
    padding-bottom: 0.5rem;
    text-align: center;
}


/* Cat Door Product Selection Styles */
.cat-door-section {
    background: linear-gradient(135deg, #fff0f5, #ffe4e6);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #e91e63;
    margin-bottom: 2rem;
}

.cat-door-section h4 {
    color: #880e4f;
    margin-bottom: 2rem;
    font-size: 1.3rem;
    text-align: center;
    border-bottom: 2px solid #e91e63;
    padding-bottom: 0.5rem;
}

.product-details {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e91e63;
    margin-top: 1rem;
}

.product-info h5 {
    color: #880e4f;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.product-info p {
    color: #666;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.product-pricing {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    margin-top: 1rem;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.pricing-row.total-price {
    font-weight: bold;
    font-size: 1.1rem;
    color: #e91e63;
    background: #fff0f5;
    padding: 0.6rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    border: 1px solid #e91e63;
}

/* Window Frame Selection Styles */
.window-frame-section {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #ffc107;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Delivery sections container */
.delivery-container {
    position: relative;
    margin-bottom: 1rem;
    min-height: 120px; /* Reserve space to prevent layout shift */
}

.delivery-container .delivery-section,
.delivery-container .frame-delivery-section {
    position: static;
    width: 100%;
    margin-bottom: 1rem;
}

/* Frame delivery section styling - ensure consistent spacing */
.frame-delivery-section {
    margin-bottom: 1rem;
    min-height: 120px; /* Reserve space to prevent layout shift */
}

.window-frame-section h4 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
    border-bottom: 1px solid #ffc107;
    padding-bottom: 0.5rem;
}

/* Installation Selection Styles (conditional) */
.installation-section {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #17a2b8;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.installation-section h4 {
    color: #0c5460;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
    border-bottom: 1px solid #17a2b8;
    padding-bottom: 0.5rem;
}

.installation-note {
    font-size: 0.9rem;
    color: #0c5460;
    font-style: italic;
    margin-top: 0.5rem;
    text-align: center;
}

.installation-note span {
    font-weight: bold;
    color: #17a2b8;
}

/* Sealing Type Selection Styles */
.sealing-type-section {
    background: linear-gradient(135deg, #f8d7da, #f1c2c7);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #dc3545;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.sealing-note {
    font-size: 0.85rem;
    color: #721c24;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    border-left: 3px solid #dc3545;
}

.sealing-note strong {
    color: #dc3545;
}

/* Glass Layer Styling - Updated for simpler design */
.glass-layer {
    background: #ffffff;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.glass-layer:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.glass-layer h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-top: -1.5rem;
    font-size: 1.125rem;
    background: #3b82f6;
    padding: 0.75rem 1.5rem;
    border-radius: 8px 8px 0 0;
    text-align: center;
    font-weight: 600;
}

/* Spacer Section Improvements */
.spacer-section {
    background: #f0fdf4;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #22c55e;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.spacer-section:hover {
    border-color: #ff0000;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

.glass-options-horizontal {
    display: flex;
    gap: 2rem;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: space-between;
}

.glass-options-horizontal .form-group {
    margin-bottom: 0;
    min-width: 120px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    min-height: 45px;
}

.checkbox-group label {
    margin-bottom: 0 !important;
    font-size: 0.9rem;
    font-weight: 500;
}

.spacer-section {
    background: linear-gradient(135deg, #e8f4f8, #d6eaf8);
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #3498db;
    border: 1px solid #bee5eb;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.spacer-section .form-group {
    margin-bottom: 0;
}

.spacer-section label {
    color: #2c3e50;
    font-weight: 600;
}

/* Checkbox styling */
.form-group label input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

.form-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
}

.form-group label:hover {
    color: #3498db;
}

/* Visualization Section Styles */
.visualization-section {
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    padding: 2%;
    border-radius: 10px;
    border: 2px solid #74b9ff;
    margin-bottom: 2rem;
    text-align: center;
}

.visualization-section h4 {
    color: #0984e3;
    margin-bottom: 2rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #74b9ff;
    padding-bottom: 0.5rem;
}

.sketch-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f4f8;
    background-image:
        repeating-conic-gradient(rgba(248, 249, 250, 0.7) 0% 25%, rgba(233, 236, 239, 0.7) 0% 50%);
    background-size: 20px 20px;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    min-height: 850px;
    min-width: 850px;
}

.sketch-container {
    position: relative;
}

.sketch-container svg {
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    display: block;
}

/* Editable dimension inputs */
.dimension-input {
    font-family: Arial, sans-serif;
    transition: all 0.2s ease;
}

.dimension-input input {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.dimension-input input:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-color: #3498db !important;
}

.dimension-input input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
    border-color: #3498db !important;
    background: white;
}

.dimension-label {
    pointer-events: none;
    user-select: none;
}

/* Text field overlays for dimension display */
.dimension-input input[type="text"] {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: text;
}

.dimension-input input[type="text"]:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dimension-input input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
    background: white;
}

.dimension-input input[type="text"][readonly] {
    cursor: default;
    background: rgba(248, 249, 250, 0.95);
}

.dimension-input input[type="text"][readonly]:hover {
    background: rgba(248, 249, 250, 1);
}

.cat-door-input {
    background: rgba(255, 245, 245, 0.95) !important;
}

.cat-door-input:hover {
    background: rgba(255, 245, 245, 1) !important;
}

/* Hole Management Section (Combined) */
.hole-management-section {
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #74b9ff;
    margin-bottom: 2rem;
}

.hole-management-section h5 {
    color: #0984e3;
    margin-bottom: 2rem;
    font-size: 1.3rem;
    text-align: center;
    border-bottom: 2px solid #74b9ff;
    padding-bottom: 0.5rem;
}

.hole-management-section {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hole-management-section > * {
    flex: 1;
    min-width: 200px;
}

@media (min-width: 1024px) {
    .hole-management-section {
        flex-wrap: nowrap;
    }

    .hole-management-section > * {
        min-width: 0;
    }
}

.product-selection-area {
    background: rgba(255, 240, 245, 0.7);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e91e63;
}

.product-selection-area h6,
.product-selection-area h4 {
    color: #880e4f;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

#add-product-btn {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#add-product-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
    background: linear-gradient(135deg, #c2185b, #e91e63);
}

.manual-hole-area {
    background: rgba(248, 249, 250, 0.8);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.manual-hole-area h6,
.manual-hole-area h4 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.holes-list-area {
    background: rgba(220, 248, 255, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #74b9ff;
}

.holes-list-area h6,
.holes-list-area h4 {
    color: #0984e3;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

/* Circle Controls */
.circle-controls {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    margin-top: 1rem;
}

.circle-controls h5 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.circle-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.circle-input-group input {
    width: 200px;
    padding: 0.5rem;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.circle-input-group input:focus {
    outline: none;
    border-color: #007bff;
}

.circle-input-group button {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: auto;
    margin-top: 0;
}

.circle-input-group button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.quick-sizes {
    margin-bottom: 1rem;
}

.quick-size-btn {
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    width: auto;
    margin-top: 0;
}

.quick-size-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
    background: linear-gradient(135deg, #20c997, #28a745);
}

#circles-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.circle-item {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid #007bff;
    color: #007bff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.circle-item:hover {
    background: #007bff;
    color: white;
}

.circle-item .remove-circle {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.circle-item .remove-circle:hover {
    background: #c82333;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(220, 53, 69, 0.4);
}

.circle-item .remove-circle:active {
    transform: scale(0.95);
}

/* Product Circle Styling */
.circle-item.product-circle {
    background: linear-gradient(135deg, #fff0f5, #ffe4e6);
    border: 2px solid #e91e63;
    color: #880e4f;
    font-weight: 600;
}

.circle-item.product-circle:hover {
    background: linear-gradient(135deg, #ffe4e6, #ffcccb);
    border-color: #c2185b;
}

.circle-item.product-circle .remove-circle.product-remove {
    background: #ff9800;
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.circle-item.product-circle .remove-circle.product-remove:hover {
    background: #f57c00;
    transform: scale(1.1);
}

/* Draggable circles */
.draggable-circle {
    user-select: none;
}

/* Visual feedback for drag area */
.sketch-container {
    position: relative;
}

.sketch-container::after {
    content: "Kreise können per Drag & Drop verschoben werden";
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 10px;
    color: #666;
    font-style: italic;
    pointer-events: none;
}

/* Sprossen Controls */
.sprossen-controls {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #28a745;
    margin-top: 1rem;
}

.sprossen-controls h5,
.sprossen-controls h3 {
    color: #155724;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
    border-bottom: 2px solid #28a745;
    padding-bottom: 0.5rem;
}

.sprossen-all-controls {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
}

.sprossen-all-controls .form-group {
    margin-bottom: 0;
    min-width: 120px;
    flex: 1;
    max-width: 180px;
}

.sprossen-all-controls input,
.sprossen-all-controls select {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #28a745;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: white;
}

.sprossen-all-controls input:focus,
.sprossen-all-controls select:focus {
    outline: none;
    border-color: #20c997;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

@media (min-width: 900px) {
    .sprossen-all-controls {
        flex-wrap: nowrap;
    }
}

/* Measurement Section Styles */
.measurement-section {
    background: #fef7f0;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #f97316;
    margin-bottom: 1.5rem;
}

.measurement-section h4 {
    color: #9a3412;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.measurement-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #f97316;
    border-radius: 1px;
}

.measurement-pairs {
    display: flex;
    gap: 3rem;
    justify-content: space-around;
}

.measurement-pair {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 200px;
}

.measurement-row {
    display: flex;
    gap: 2rem;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.measurement-row .form-group {
    flex: 1;
    margin-bottom: 0;
    min-width: 200px;
}

.measurement-pair .form-group {
    margin-bottom: 0;
}

/* Responsive adjustments for glass configuration */
@media (max-width: 768px) {
    .glass-options-horizontal {
        flex-direction: column;
        gap: 1rem;
    }

    .glass-options-horizontal .form-group {
        width: 100%;
        min-width: auto;
    }

    .glass-configuration {
        padding: 1rem;
    }

    .measurement-pairs {
        flex-direction: column;
        gap: 1.5rem;
    }

    .measurement-row {
        flex-direction: column;
        gap: 1rem;
    }

    .sprossen-all-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .sprossen-all-controls .form-group {
        max-width: 100%;
    }

}

@media (max-width: 480px) {
    .glass-options-horizontal {
        gap: 0.5rem;
    }

    .checkbox-group {
        min-height: 40px;
        padding: 0.25rem;
    }

    .measurement-section {
        padding: 1rem;
    }
}

.result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #dff0d8, #c3e6cb);
    border: 1px solid #b8dabc;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #155724;
    display: none;
}

.result.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Calculation Results Display */
#calculation-results {
    margin-top: 2rem;
    display: none;
}

.results-content {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 2px solid #007bff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    animation: slideIn 0.3s ease;
}

.quote-number {
    background: #e7f3ff;
    border: 1px solid #b3d7ff;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #0056b3;
    text-align: center;
}

/* Glass Specifications Section */
.specs-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.specs-section h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.spec-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.spec-value.highlight {
    color: #007bff;
    font-size: 1.1rem;
}

/* Glass Layers & Spacer Detail Tables */
.glass-layers-section,
.spacer-section {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.glass-layers-section h4,
.spacer-section h4 {
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.detail-table thead th {
    background: #f1f3f4;
    color: #495057;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.detail-table tbody td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.detail-table tbody tr:last-child td {
    border-bottom: none;
}

.detail-table tbody tr:hover {
    background: #f8f9fa;
}

/* Info Section (Notes) */
.info-section {
    background: #fff8e6;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.info-section h4 {
    color: #856404;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-list li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #6c5a1f;
    font-size: 0.9rem;
}

.info-list li::before {
    content: "ℹ️";
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

.price-breakdown {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.price-breakdown h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.price-item:last-child {
    border-bottom: none;
}

.price-label {
    color: #555;
    font-size: 1rem;
}

.price-value {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 500;
}

.price-item.price-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #007bff;
    border-bottom: none;
    background: linear-gradient(135deg, #e7f3ff, #f0f7ff);
    margin: 1rem -1rem -1rem -1rem;
    padding: 1rem 1.5rem;
    border-radius: 0 0 8px 8px;
}

.price-item.price-total .price-label {
    color: #0056b3;
    font-size: 1.2rem;
}

.price-item.price-total .price-value {
    color: #007bff;
    font-size: 1.4rem;
    font-weight: 700;
}

.weight-info {
    display: flex;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.result-actions .btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.result-actions .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.result-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004494);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

/* Calculation Results - Mobile */
@media (max-width: 768px) {
    .results-content {
        padding: 1.25rem;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .spec-item {
        padding: 0.5rem;
    }

    .spec-label {
        font-size: 0.7rem;
    }

    .spec-value {
        font-size: 0.9rem;
    }

    .detail-table {
        font-size: 0.8rem;
    }

    .detail-table thead th,
    .detail-table tbody td {
        padding: 0.4rem 0.5rem;
    }

    .price-breakdown {
        padding: 1rem;
    }

    .price-breakdown h3 {
        font-size: 1.1rem;
    }

    .price-item.price-total .price-value {
        font-size: 1.2rem;
    }

    .result-actions .btn {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .specs-grid {
        grid-template-columns: 1fr 1fr;
    }

    .detail-table thead th:nth-child(3),
    .detail-table tbody td:nth-child(3) {
        display: none;
    }
}

/* Services Section */
.services-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.services-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-size: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: #666;
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.service-card li {
    padding: 0.3rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li:before {
    content: "✓";
    color: #00b894;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e17055;
    text-align: center;
    padding: 0.5rem;
    background: #fff5f3;
    border-radius: 5px;
    border: 1px solid #ffeaa7;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: white;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-size: 2rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3,
.quote-form h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: #555;
}

.quote-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quote-form input,
.quote-form textarea {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.quote-form input:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* Offline Banner */
.offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.offline-banner .offline-icon {
    font-size: 1.3rem;
}

.offline-banner .offline-text {
    font-weight: 500;
    font-size: 0.95rem;
}

.offline-banner .offline-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 15px;
    transition: background 0.2s;
}

.offline-banner .offline-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* When offline, add top padding to body to account for banner */
body.is-offline {
    padding-top: 50px;
}

/* Edit Mode Banner */
.edit-mode-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

.edit-mode-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.edit-mode-icon {
    font-size: 1.4rem;
}

.edit-mode-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.edit-mode-title {
    font-weight: 700;
    font-size: 1rem;
}

.edit-mode-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.95;
}

.edit-mode-separator {
    opacity: 0.6;
}

.edit-mode-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.4rem;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.edit-mode-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* When in edit mode, add top padding to body */
body.is-edit-mode {
    padding-top: 55px;
}

/* Footer */
footer {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.5rem 0;
    margin-top: 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #60a5fa;
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #d1d5db;
    line-height: 1.5;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }

    /* Navigation improvements */
    nav .container {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 10px;
    }

    nav h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    nav ul {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav li {
        margin: 0.25rem;
    }

    .language-switcher {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .lang-dropdown-menu {
        right: 0;
        left: auto;
        min-width: 140px;
    }

    /* Hero section */
    .hero {
        padding: 2rem 0;
    }

    .hero h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    /* Calculator sections */
    .calculator-section {
        padding: 1.5rem 0;
        margin: 0.5rem 0;
        border-radius: 10px;
    }

    .calculator-section h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .calculator-form {
        padding: 1rem;
    }

    .glass-configuration {
        padding: 1rem;
        border-radius: 10px;
        margin-bottom: 1.5rem;
    }

    .glass-configuration > h2,
    .glass-configuration > h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .glass-layer,
    .spacer-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .glass-layer h4 {
        margin-left: -1rem;
        margin-right: -1rem;
        margin-top: -1rem;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    /* Form elements */
    .form-group {
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        display: block;
        text-align: center;
    }

    .form-group input,
    .form-group select {
        padding: 0.75rem;
        font-size: 16px;
        /* Prevents zoom on iOS */
        border-radius: 8px;
        text-align: center;
        margin: 0 auto;
        display: block;
    }

    button {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        letter-spacing: 0.3px;
    }

    /* Checkbox groups */
    .checkbox-group {
        padding: 1rem;
        margin: 1rem 0;
        text-align: center;
    }

    .checkbox-group label {
        font-size: 1rem;
        justify-content: center;
    }

    /* Calculator buttons */
    .calculator-buttons {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Contact content */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Services grid */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.5rem;
    }

    /* Hole management */
    .hole-management-section {
        flex-direction: column;
        gap: 1rem;
    }

    /* Visualization */
    .sketch-container {
        min-height: 400px;
        min-width: auto;
        width: 100%;
        overflow-x: auto;
    }

    .sketch-container svg {
        width: 100%;
        height: auto;
        min-width: 300px;
    }

    /* Circle controls */
    .circle-input-group {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .circle-input-group input {
        width: 100%;
        text-align: center;
    }

    .circle-input-group button {
        width: 100%;
        margin-top: 0;
    }

    .quick-sizes > div {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .quick-size-btn {
        width: 100%;
        margin: 0;
    }

    .circle-item {
        width: 100%;
        min-width: auto;
    }

    #circles-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }

    /* Header improvements for very small screens */
    header {
        padding: 0.5rem 0;
    }

    nav h1 {
        font-size: 1.2rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.25rem;
        width: 100%;
    }

    nav li {
        width: 100%;
        text-align: center;
    }

    nav a {
        display: block;
        padding: 0.5rem;
        width: 100%;
    }

    .language-switcher {
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .lang-dropdown-btn {
        min-width: 70px;
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .lang-dropdown-menu {
        min-width: 130px;
        right: 0;
        left: auto;
    }
    
    .lang-option {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Hero section */
    .hero {
        padding: 1.5rem 0;
    }

    .hero h2 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.9rem;
    }

    /* Calculator sections */
    .calculator-section {
        padding: 1rem 0;
        margin: 0.25rem 0;
    }

    .calculator-section h2 {
        font-size: 1.4rem;
    }

    .calculator-form {
        padding: 0.75rem;
    }

    .glass-configuration {
        padding: 0.75rem;
    }

    .glass-configuration > h2,
    .glass-configuration > h3 {
        font-size: 1.2rem;
    }

    .glass-layer,
    .spacer-section,
    .glass-edge-section,
    .window-frame-section,
    .delivery-section,
    .measurement-section {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .glass-layer h4 {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        margin-top: -0.75rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }

    /* Form elements for very small screens */
    .form-group {
        margin-bottom: 1rem;
        text-align: center;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
        display: block;
        text-align: center;
    }

    .form-group input,
    .form-group select {
        padding: 0.6rem;
        font-size: 16px;
        text-align: center;
        margin: 0 auto;
        display: block;
    }

    button {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Measurement section */
    .measurement-pairs {
        flex-direction: column;
        gap: 1rem;
    }

    .measurement-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Sprossen controls */
    .sprossen-all-controls {
        flex-direction: column;
        gap: 0.75rem;
    }

    .sprossen-all-controls .form-group {
        max-width: 100%;
    }

    /* Visualization improvements */
    .visualization-section {
        padding: 1rem;
    }

    .sketch-container {
        min-height: 300px;
        overflow-x: scroll;
        overflow-y: hidden;
    }

    .sketch-container svg {
        min-width: 400px;
    }

    /* Hole management */
    .hole-management-container h5,
    .hole-management-container > h3 {
        font-size: 1.1rem;
        text-align: center;
    }

    .product-selection-area,
    .manual-hole-area,
    .holes-list-area {
        padding: 0.75rem;
    }

    .product-selection-area h6,
    .manual-hole-area h6,
    .holes-list-area h6,
    .product-selection-area h4,
    .manual-hole-area h4,
    .holes-list-area h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    /* Service cards */
    .service-card {
        padding: 1rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    /* Footer */
    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }
}

/* Additional breakpoint for very small devices */
@media (max-width: 360px) {
    .container {
        padding: 0 5px;
    }

    nav h1 {
        font-size: 1.1rem;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .calculator-section h2 {
        font-size: 1.2rem;
    }

    .glass-configuration > h2,
    .glass-configuration > h3 {
        font-size: 1.1rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.5rem;
        text-align: center;
        margin: 0 auto;
        display: block;
    }

    button {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    .sketch-container {
        min-height: 250px;
    }

    .sketch-container svg {
        min-width: 350px;
    }
}

/* Landscape orientation improvements for phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 1rem 0;
    }

    .hero h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .calculator-section {
        padding: 0.75rem 0;
    }

    .glass-configuration,
    .glass-layer,
    .spacer-section {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .sketch-container {
        min-height: 200px;
    }
}

/* Touch-friendly improvements */
@media (pointer: coarse) {
    button,
    .lang-btn,
    .quick-size-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1rem;
    }

    .form-group input,
    .form-group select {
        min-height: 44px;
        padding: 0.75rem;
    }

    .circle-item .remove-circle {
        min-width: 28px;
        min-height: 28px;
    }

    nav a {
        padding: 0.75rem 1rem;
    }
}

/* =====================================================
   TABLET-SPECIFIC STYLES (768px - 1024px)
   ===================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Container adjustments */
    .container {
        max-width: 95%;
        padding: 0 20px;
        overflow-x: hidden;
    }

    /* Prevent horizontal overflow */
    .glass-configuration,
    .calculator-form,
    .calculator-section {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* Navigation - keep desktop style but compact */
    nav .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    nav h1 {
        font-size: 1.3rem;
    }

    nav ul {
        gap: 1rem;
    }

    nav a {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }

    /* Hero section */
    .hero {
        padding: 2rem 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Calculator sections */
    .calculator-section {
        padding: 1.5rem 0;
    }

    .calculator-form {
        padding: 1.5rem;
    }

    .glass-configuration {
        padding: 1.25rem;
    }

    .glass-configuration > h2,
    .glass-configuration > h3 {
        font-size: 1.35rem;
    }

    /* Measurement section - 2x2 grid on tablet */
    .measurement-section {
        padding: 1.25rem;
    }

    .measurement-pairs {
        flex-direction: column;
        gap: 1rem;
    }

    .measurement-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        width: 100%;
    }

    .measurement-row .form-group {
        flex: none;
        width: 100%;
        min-width: 0;
    }

    /* Glass layer visualization */
    .layer-display {
        height: 350px;
    }

    /* Sketch container - fit within bounds */
    .sketch-container {
        min-height: auto;
        min-width: auto;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .sketch-container svg {
        min-width: auto;
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    /* Hide the drag-drop text that overflows */
    .sketch-container::after {
        display: none;
    }

    /* Hole management - row on tablet */
    .hole-management-section {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .holes-list-area {
        flex-basis: 100%;
    }

    /* Sprossen controls - horizontal on tablet */
    .sprossen-all-controls {
        flex-direction: row;
        gap: 1.5rem;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .sprossen-all-controls .form-group {
        min-width: 140px;
    }

    /* Circle controls */
    .circle-input-group {
        flex-direction: row;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .circle-input-group input {
        width: 180px;
    }

    .circle-input-group button {
        width: auto;
    }

    .circle-item {
        width: calc(50% - 0.5rem);
        min-width: 180px;
    }

    #circles-list {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Quick sizes */
    .quick-sizes > div {
        flex-direction: row !important;
        flex-wrap: wrap;
    }

    .quick-size-btn {
        width: auto;
        min-width: 70px;
    }

    /* Form elements */
    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.7rem;
        font-size: 1rem;
    }

    /* Glass options buttons */
    .glass-options {
        gap: 15px;
        flex-wrap: wrap;
    }

    .glass-option-button {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Delivery sections */
    .delivery-section,
    .frame-delivery-section {
        padding: 1.25rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    /* Modal adjustments */
    .modal {
        max-width: 85vw;
        padding: 25px;
    }

    /* Language dropdown */
    .lang-dropdown-btn {
        padding: 0.35rem 0.7rem;
    }

    .lang-dropdown-menu {
        min-width: 140px;
    }
}

/* Tablet Portrait specific (768px - 900px) */
@media (min-width: 768px) and (max-width: 900px) {
    /* More compact layout for portrait tablets */
    .measurement-row {
        flex-direction: column;
        gap: 1rem;
    }

    .measurement-row .form-group {
        flex: 1 1 100%;
        min-width: auto;
    }

    .hole-management-section {
        flex-direction: column;
    }

    .sprossen-all-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .sprossen-all-controls .form-group {
        max-width: 100%;
    }

    .sketch-container {
        min-height: 500px;
    }

    .sketch-container svg {
        min-width: 600px;
    }

    /* Footer stacked on narrow tablets */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-content .footer-section:last-child {
        grid-column: 1 / -1;
        text-align: center;
    }
}

/* Tablet Landscape specific (901px - 1024px) */
@media (min-width: 901px) and (max-width: 1024px) {
    /* More spacious layout for landscape tablets */
    .container {
        max-width: 90%;
    }

    .measurement-row {
        gap: 1.5rem;
    }

    .hole-management-section {
        gap: 1.5rem;
    }
}

/* Large Tablets / iPad Pro Landscape (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .container {
        max-width: 95%;
        padding: 0 20px;
        overflow-x: hidden;
    }

    /* Prevent horizontal overflow */
    .glass-configuration,
    .calculator-form,
    .calculator-section {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* Measurement section - 2x2 grid */
    .measurement-pairs {
        flex-direction: column;
        gap: 1rem;
    }

    .measurement-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        width: 100%;
    }

    .measurement-row .form-group {
        width: 100%;
        min-width: 0;
    }

    /* Sketch container */
    .sketch-container {
        min-height: auto;
        min-width: auto;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
    }

    .sketch-container svg {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    /* Hide overflow text */
    .sketch-container::after {
        display: none;
    }
}

/* Weight Display Styling */
.breakdown-weight {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    margin-top: 0.25rem;
    font-weight: 600;
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

/* Delivery Section Styling */
.delivery-section {
    background: linear-gradient(135deg, #e8f4fd, #d1ecf1);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #17a2b8;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    min-height: 200px;
}

.delivery-note {
    font-size: 0.9rem;
    color: #0c5460;
    font-style: italic;
    margin-top: 0.5rem;
    text-align: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    border-left: 3px solid #17a2b8;
}

/* Frame Delivery Section Styling */
.frame-delivery-section {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    padding: 1rem;
    border-radius: 6px;
    border: 2px solid #ffc107;
    margin-top: 1rem;
    transition: all 0.3s ease;
    min-height: 150px;
}

.frame-delivery-note {
    font-size: 0.85rem;
    color: #856404;
    font-style: italic;
    margin-top: 0.5rem;
    text-align: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    border-left: 3px solid #ffc107;
}

/* Quantity Container */
.quantity-container {
    margin-top: 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #e8f4fd, #d4e9f7);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 2px solid #007bff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.quantity-container .quantity-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.quantity-container .quantity-group label {
    font-weight: 600;
    color: #0056b3;
    margin: 0;
    white-space: nowrap;
}

.quantity-container .quantity-group input {
    width: 80px;
    padding: 0.5rem;
    border: 2px solid #007bff;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
}

.quantity-container .btn {
    padding: 0.6rem 1.2rem;
    font-weight: 600;
}

/* Old Glass Disposal Section Styling */
.disposal-container {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.disposal-section {
    background: linear-gradient(135deg, #f5f0e6, #ebe3d5);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 2px solid #8b7355;
    transition: all 0.3s ease;
}

.disposal-section:hover {
    border-color: #6d5a45;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.2);
}

.disposal-checkbox-group {
    margin: 0;
}

.disposal-checkbox-group .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    color: #5a4a3a;
    font-weight: 500;
}

.disposal-checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #8b7355;
}

.disposal-checkbox-group .disposal-price-info {
    font-size: 0.9rem;
    color: #7a6a5a;
    font-weight: normal;
    margin-left: 0.25rem;
}

/* PDF Email Form Styles */
.pdf-email-form-container {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    width: 100%;
}

.pdf-email-form-container h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdf-email-form-container input,
.pdf-email-form-container textarea {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.pdf-email-form-container input:focus,
.pdf-email-form-container textarea:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

.pdf-email-form-container button {
    background: linear-gradient(135deg, #27ae60, #229954);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.15s ease-in-out;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdf-email-form-container button:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pdf-email-form-container button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pdf-email-form-container button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Installation breakdown styling */
.breakdown-item-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 1rem;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

.installation-breakdown {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

/* Enhanced Modal Styles for better responsiveness */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.modal {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: min(90vw, 800px);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Responsive grid layout for form fields */
.modal-form-row {
    display: grid;
    gap: 15px;
    margin-bottom: 15px;
}

.modal-form-row.two-col {
    grid-template-columns: 1fr 1fr;
}

.modal-form-row.three-col {
    grid-template-columns: auto 1fr 1fr;
}

.modal-form-row.address-row {
    grid-template-columns: 100px 1fr;
}

/* Enhanced responsive breakpoints */
@media (max-width: 768px) {
    .modal {
        padding: 20px;
        margin: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .pdf-email-form-container {
        padding: 15px;
        margin-top: 15px;
    }

    .pdf-email-form-container div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .pdf-email-form-container input,
    .pdf-email-form-container select {
        min-width: unset !important;
        width: 100% !important;
        flex: none !important;
    }

    .pdf-email-form-container select {
        min-width: 120px !important;
    }
    
    /* Make form rows stack on mobile */
    .modal-form-row.two-col,
    .modal-form-row.three-col,
    .modal-form-row.address-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .modal {
        padding: 15px;
        border-radius: 8px;
    }
    
    .modal-overlay {
        padding: 10px;
    }
}

@media (min-width: 1200px) {
    .modal {
        max-width: 900px;
        padding: 40px;
    }
}

/* Enhanced form input styles */
.modal input, .modal select {
    transition: all 0.2s ease-in-out;
}

.modal input:focus, .modal select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    transform: translateY(-1px);
}

/* Button responsive styles */
.modal button {
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    min-height: 40px;
}

.modal button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.modal button:active {
    transform: translateY(0);
}

/* Improved spacing for mobile */
@media (max-width: 480px) {
    .modal {
        padding: 15px;
        border-radius: 0;
        max-height: 100vh;
        max-width: 100vw;
        margin: 0;
    }
    
    .modal-overlay {
        padding: 0;
    }
    
    /* Stack buttons on very small screens */
    .modal-form-row.two-col {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }
    
    .modal button {
        width: 100%;
        margin: 5px 0;
    }
}

/* Additional styling for better form appearance */
.pdf-email-form-container select {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    background: white;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.pdf-email-form-container select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

/* Glass Layer Visualization Styles */
.layer-display {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #f0f4f8;
    background-image:
        repeating-conic-gradient(rgba(248, 249, 250, 0.7) 0% 25%, rgba(233, 236, 239, 0.7) 0% 50%);
    background-size: 20px 20px;
    border: 2px solid #6c757d;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.glass-layer {
    position: absolute;
    border: 2px solid;
    border-radius: 2px;
    opacity: 0.9;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.glass-layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.13);
    transform: skewX(-25deg);
    animation: shine 7s infinite;
}

@keyframes shine {
    0% { left: -75%; }
    10% { left: 150%; }
    100% { left: 150%; }
}

.glass-layer:hover {
    opacity: 1;
    transform: scale(1.02);
}

.layer-1, .layer-2, .layer-3 {
    background: linear-gradient(135deg, rgba(173, 216, 230, 0.9), rgba(173, 216, 230, 0.7));
    border-color: #4682b4;
    box-shadow: inset 0 0 10px rgba(70, 130, 180, 0.3);
}

.spacer {
    position: absolute;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(135, 206, 250, 0.2) 50%,
            rgba(255, 255, 255, 0.1) 100%);
    border: 2px dashed #87ceeb;
    border-radius: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spacer::before {
    content: '💨';
    font-size: 20px;
    opacity: 0.7;
}

.layer-dropdown, .spacer-dropdown {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    padding: 4px 6px;
    max-width: 100px;
    z-index: 10;
    text-align: center;
}

.spacer-dropdown {
    border-color: #87ceeb;
}

/* PVB Foil for VSG glass */
.pvb-foil {
    position: absolute;
    background: linear-gradient(90deg,
            rgba(255, 255, 200, 0.9) 0%,
            rgba(255, 250, 180, 0.95) 50%,
            rgba(255, 255, 200, 0.9) 100%);
    border: 1px solid rgba(200, 180, 100, 0.6);
    border-radius: 1px;
    box-shadow: inset 0 0 3px rgba(255, 220, 100, 0.5);
}

.pvb-foil::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 60%;
    background: rgba(200, 180, 100, 0.4);
}

.measurement-line {
    position: absolute;
    background: #495057;
}

.measurement-text {
    position: absolute;
    background: white;
    padding: 2px 6px;
    border: 1px solid #495057;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    color: #495057;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.total-measurement-line {
    position: absolute;
    background: #007bff;
    height: 2px;
}

.total-measurement-text {
    position: absolute;
    background: white;
    padding: 2px 6px;
    border: 1px solid #007bff;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    color: #007bff;
    white-space: nowrap;
    text-align: center;
}

.total-measurement-marker {
    position: absolute;
    background: #007bff;
    width: 1px;
    height: 10px;
}

.outside-marker, .inside-marker {
    position: absolute;
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.2s;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.outside-marker:hover, .inside-marker:hover {
    transform: scale(1.2);
}

.glass-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    flex-wrap: nowrap;
}

.glass-options .glass-option-button {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .glass-options {
        flex-wrap: wrap;
    }
}

.edge-seal-inline.form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin: 0;
}

.edge-seal-inline.form-group label {
    display: block;
    white-space: nowrap;
    font-size: 0.75rem;
    margin: 0;
    color: #666;
}

.edge-seal-inline.form-group select {
    height: 32px;
    width: auto;
    padding: 0 0.5rem;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    font-size: 0.9rem;
    background-color: white;
}

.notes-section {
    background: linear-gradient(135deg, #fff9e6, #fff3cd);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #ffc107;
    margin-top: 1.5rem;
}

.notes-section label {
    color: #856404;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.notes-section textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ffc107;
    border-radius: 6px;
    font-size: 1rem;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.notes-section textarea:focus {
    outline: none;
    border-color: #e0a800;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.glass-configuration-ui {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.glass-configuration-ui h5 {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
}

.glass-selectors {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.glass-selector-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.glass-selector-group label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.glass-selector-group select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 0.95rem;
    cursor: pointer;
}

.glass-selector-group select:hover {
    border-color: #007bff;
}

.glass-selector-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

.glass-option-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.glass-option-button:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.glass-option-button:active {
    transform: translateY(0);
}

/* =====================================================
   MOBILE HAMBURGER MENU
   ===================================================== */

/* Hamburger button - hidden on desktop */
.hamburger-menu {
    display: none;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.hamburger-menu:focus,
.hamburger-menu:active,
.hamburger-menu:hover {
    outline: none;
    background: transparent;
    box-shadow: none;
}

.hamburger-line {
    position: absolute;
    left: 6px;
    width: 20px;
    height: 2px;
    background-color: #333;
    border-radius: 1px;
    transition: all 0.25s ease;
}

.hamburger-line:nth-child(1) {
    top: 8px;
}

.hamburger-line:nth-child(2) {
    top: 15px;
}

.hamburger-line:nth-child(3) {
    top: 22px;
}

/* Hamburger animation when open */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    top: 15px;
    transform: rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    top: 15px;
    transform: rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile navigation menu */
.nav-mobile {
    display: flex;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 60px 20px 20px;
    transition: right 0.3s ease;
    flex-direction: column;
    gap: 10px;
    visibility: hidden;
}

.nav-mobile.active {
    right: 0;
    visibility: visible;
}

.nav-mobile a {
    display: block;
    padding: 15px;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.nav-mobile a:hover {
    background: #f5f5f5;
}

/* Mobile language section */
.mobile-language-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.mobile-lang-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    padding-left: 15px;
}

.mobile-lang-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 15px;
}

.mobile-lang-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.mobile-lang-option:hover {
    background: #e0e0e0;
}

.mobile-lang-option .lang-flag {
    width: 20px;
    height: 15px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    /* Show hamburger, hide desktop nav */
    .hamburger-menu {
        display: flex;
    }

    .nav-desktop {
        display: none !important;
    }

    .nav-mobile {
        display: flex;
    }

    /* Compact header */
    header {
        padding: 0.5rem 0;
    }

    nav .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }

    nav h1 {
        font-size: 1.1rem;
        margin: 0;
    }
}

@media (max-width: 480px) {
    nav h1 {
        font-size: 0.95rem;
    }
}

/* ==========================================
   GLASS LIST / MULTIPLE GLASSES STYLES
   ========================================== */

/* ==========================================
   GLASS TABS SYSTEM
   ========================================== */

.glass-tabs-container {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 12px 12px 0 0;
    padding: 1rem;
    margin-bottom: 0;
    border-bottom: none;
}

.glass-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.glass-tab {
    background: #ffffff;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    margin: 0;
    width: auto;
}

.glass-tab:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.glass-tab.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.glass-tab.active:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.glass-tab[data-tab="new"] {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border-color: #27ae60;
}

.glass-tab[data-tab="new"]:hover {
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.glass-tab[data-tab="new"].active {
    background: linear-gradient(135deg, #219653 0%, #27ae60 100%);
    border-color: #219653;
}

/* New tab highlight animation */
@keyframes tabHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
        transform: scale(1);
    }
    25% {
        box-shadow: 0 0 20px 10px rgba(59, 130, 246, 0.5);
        transform: scale(1.05);
    }
    50% {
        box-shadow: 0 0 30px 15px rgba(59, 130, 246, 0.3);
        transform: scale(1.08);
    }
    75% {
        box-shadow: 0 0 20px 10px rgba(59, 130, 246, 0.2);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
        transform: scale(1);
    }
}

.glass-tab.new-tab-highlight {
    animation: tabHighlight 0.8s ease-out;
}

.glass-tab .tab-quantity {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.glass-tab.active .tab-quantity {
    background: rgba(255, 255, 255, 0.3);
}

.glass-tab-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.btn-save-changes {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    margin: 0;
    width: auto;
}

.btn-save-changes:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Editing mode indicator */
.glass-configuration.editing-mode {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.glass-configuration.editing-mode::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border-radius: 8px 8px 0 0;
}

/* Tab transition effect */
.glass-tabs-container + .glass-layers-container {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: 0;
}

/* Responsive: tabs on mobile */
@media (max-width: 768px) {
    .glass-tabs {
        gap: 0.35rem;
    }

    .glass-tab {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .glass-tab .tab-quantity {
        padding: 0.1rem 0.3rem;
        font-size: 0.7rem;
    }
}

/* ==========================================
   END GLASS TABS SYSTEM
   ========================================== */

/* Glass List Section */
.glass-list-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.glass-list-section h5,
.glass-list-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.glass-list-section h5::before,
.glass-list-section h3::before {
    content: "📋";
}

/* Add More Glasses Button */
.btn-add-more-glasses {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-add-more-glasses:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004094 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-add-more-glasses:active {
    transform: translateY(0);
}

/* Quantity Row */
.quantity-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.quantity-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-group label {
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.quantity-group input[type="number"] {
    width: 80px;
    padding: 0.5rem;
    border: 2px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
    font-weight: 600;
}

.quantity-group input[type="number"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

#add-to-list-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

#add-to-list-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

/* Glass List Container */
.glass-list-container {
    min-height: 60px;
}

.glass-list-container h6 {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.glass-list-empty {
    color: #adb5bd;
    font-style: italic;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

/* Glass List Items */
#glass-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.glass-list-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.glass-list-item:hover {
    border-color: #3498db;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.15);
    cursor: pointer;
}

.glass-list-item.editing {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.glass-list-item.editing:hover {
    border-color: #2563eb;
}

.glass-list-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.glass-list-item-number {
    background: #3498db;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.glass-list-item-quantity {
    background: #27ae60;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.glass-list-item-dimensions {
    font-weight: 600;
    color: #2c3e50;
}

.glass-list-item-layers {
    color: #6c757d;
    font-size: 0.9rem;
}

.glass-list-item-details {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.glass-badge {
    background: #e9ecef;
    color: #495057;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.glass-badge.heat {
    background: #fff3e0;
    color: #e65100;
}

.glass-badge.product {
    background: #e3f2fd;
    color: #1565c0;
}

.glass-list-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.glass-list-item-remove:hover {
    background: #dc2626;
    color: white;
}

/* Glass List Summary */
.glass-list-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #e9ecef;
    border-radius: 8px;
    font-weight: 600;
}

.glass-list-summary span {
    color: #495057;
}

#glass-list-count {
    background: #3498db;
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 1.1rem;
}

#clear-glass-list-btn {
    margin-left: auto;
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

#clear-glass-list-btn:hover {
    background: #c82333;
}

/* Button small variant */
.btn-small {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.8rem !important;
}

.btn-danger {
    background: #dc3545 !important;
    color: white !important;
}

/* ==========================================
   MULTIPLE GLASSES RESULTS DISPLAY
   ========================================== */

.multiple-glasses-results {
    background: #f8f9fa;
}

/* Summary Header */
.multi-glass-summary-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.multi-glass-summary-header h3 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
}

.summary-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Glasses List Results */
.glasses-list-results {
    margin-bottom: 1.5rem;
}

.glasses-list-results h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.glass-result-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.glass-result-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.glass-number {
    background: #2c3e50;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.glass-quantity-badge {
    background: #27ae60;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
}

.glass-dimensions {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.05rem;
}

.glass-result-specs {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.glass-result-specs .spec {
    color: #6c757d;
    font-size: 0.9rem;
}

.glass-layers-compact {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.layer-info {
    background: #e9ecef;
    color: #495057;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.glass-result-costs {
    border-top: 1px solid #e9ecef;
    padding-top: 0.5rem;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #495057;
    padding: 0.25rem 0;
}

.cost-row.subtotal {
    font-weight: 600;
    color: #2c3e50;
    border-top: 1px dashed #dee2e6;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}

/* Shared Costs Section */
.shared-costs-section {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.shared-costs-section h4 {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

/* Responsive */
@media (max-width: 600px) {
    .quantity-row {
        flex-direction: column;
        align-items: stretch;
    }

    .quantity-group {
        width: 100%;
        justify-content: space-between;
    }

    #add-to-list-btn {
        width: 100%;
        text-align: center;
    }

    .glass-list-summary {
        flex-wrap: wrap;
        justify-content: center;
    }

    #clear-glass-list-btn {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }

    .summary-stats {
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .glass-result-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* =========================================================
   Ergaenzungen Logik-Refactoring 2026-07
   ========================================================= */

/* Vormals ungestylte Sektions-Ueberschriften (h5 -> h3): kompakte Groesse beibehalten */
.hole-management-container > h3,
.window-frame-section h3,
.delivery-section h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Edit-Mode-Banner: Aktions-Buttons und Hinweistext */
.edit-mode-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    flex-wrap: wrap;
}

.edit-mode-buttons .btn {
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.edit-mode-buttons .btn-success {
    background: #27ae60;
    color: #fff;
}

.edit-mode-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.edit-mode-hint {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Glaslisten-Titel in der zentrierten Sektion mittig ausrichten */
.glass-list-section h3 {
    justify-content: center;
}
