/* Enhanced CSS for Skalae with Roboto Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

* {
    font-family: 'Roboto', sans-serif !important;
}

body { 
    font-family: 'Roboto', sans-serif; 
    margin: 0; 
    background: #fff; 
    font-weight: 400;
}

.header { 
    background: white; 
    padding: 1rem 2rem; 
}

.header-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.header .logo { 
    display: none; /* Hide on desktop */
    margin: 0;
}

.header .logo img { 
    height: 60px; 
    width: auto;
    max-width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.configuration-sidebar .logo {
    margin: 0 0 30px 0;
}

.configuration-sidebar .logo img { 
    height: 120px; 
    width: auto;
    max-width: 300px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo img:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.navigation { 
    display: flex; 
    gap: 0.5rem; 
}

.nav-btn { 
    background: transparent; 
    border: none; 
    padding: 0.5rem 1rem; 
    border-radius: 0px; 
    cursor: pointer; 
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 16px;
}

.nav-btn.active { 
    background: #38280b; 
    color: #ffffff; 
    font-weight: 300;
}

.main-content { 
    padding: 1rem 0; 
}

.content-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 3rem; 
    display: grid; 
    grid-template-columns: 1fr 400px; 
    gap: 2rem; 
}

.view { 
    display: none; 
    animation: fadeIn 0.4s ease-out;
}

.view.active { 
    display: block; 
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.konfigurator-controls {
    display: flex;
    position: absolute;
    z-index: 100;
    margin: 1rem;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

#model-choice {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
}

#model-choice:hover {
    border-color: #999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

#model-choice:focus {
    outline: none;
    border-color: #38280b;
    box-shadow: 0 0 0 2px rgba(56, 40, 11, 0.1);
}

#price-zone {
    color: #000000;
    font-size: 3.25rem;
    font-weight: 800;
    font-family: 'Roboto', sans-serif;
}

#canvas-zone { 
    background: white; 
    border-radius: 0; 
    height: 650px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    position: relative; 
    transition: all 0.3s ease;
    overflow: hidden;
}

#canvas-zone:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.loading-message { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    transition: opacity 0.3s;
    pointer-events: none;
}

#render-canvas { 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    transition: opacity 0.3s; 
}

/* Hide loading message when canvas is visible */
#render-canvas[style*="opacity: 1"] ~ .loading-message,
#render-canvas.loaded ~ .loading-message {
    opacity: 0;
}

/* Toolbar Styling - Labels nebeneinander wie im Bild */
#toolbar {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#toolbar:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

#tools {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-family: 'Roboto', sans-serif;
}

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

.label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    margin: 0;
}

.button {
    cursor: pointer;
    border: 1px solid #38280b;
    border-radius: 0px;
    background-color: white;
    color: #38280b;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    padding: 0.25rem 0.75rem;
    min-width: 50px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.button:hover {
    background-color: #38280b;
    color: white;
}

.button.selected {
    background-color: #38280b;
    border-color: #38280b;
    color: white;
    font-weight: 500;
}

/* Slider mit verbessertem Design */
.slider-container {
    margin: 1rem 0;
    padding: 0 1rem;
}

#slider {
    appearance: none;
    width: 100%;
    height: 2px;
    border-radius: 0px;
    background: #38280b;
    outline: none;
    transition: background 0.2s;
}

#slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 0%;
    background: #38280b;
    cursor: pointer;
    border: 0px solid white;
    box-shadow: 0 1px 3px rgba(56, 40, 11, 0.3);
}

#slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 0%;
    background: #38280b;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(56, 40, 11, 0.3);
}

.config-card { 
    background: white; 
    border-radius: 0px; 
    padding: 1.5rem; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    cursor: default;
}

.config-card h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    margin: 0 0 1rem 0;
}

.config-item { 
    display: flex; 
    justify-content: space-between; 
    padding: 0.75rem 0; 
    border-bottom: 1px solid #f8f9fa; 
    font-family: 'Roboto', sans-serif;
}

.config-label {
    font-weight: 400;
    color: #666;
}

.config-value {
    font-weight: 500;
    color: #000;
}

.dimensions-values {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.dimension-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dimension-label {
    font-weight: 400;
    color: #666;
    font-size: 0.9rem;
}

.price-value {
    color: #000000;
    font-size: 2rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.price-value:hover {
    transform: scale(1.02);
    color: #38280b;
}

.order-btn { 
    width: 100%; 
    background: #38280b; 
    color: white; 
    border-radius: 0px; 
    padding: 0.875rem 1.5rem; 
    margin-top: 1.5rem; 
    cursor: pointer; 
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #38280b;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.order-btn::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    display: inline-block;
    position: absolute;
    right: 1.5rem;
}

.order-btn:hover {
    background: white;
    color: #38280b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 40, 11, 0.15);
}

.order-btn:hover::after {
    transform: translateX(4px);
}

.order-btn:disabled { 
    background: #ccc; 
    cursor: not-allowed; 
    transform: none;
    box-shadow: none;
}

/* Contact Button Container */
.contact-btn-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Contact Button - positioned below config card */
.contact-btn-fixed {
    position: static;
    width: 45px;
    height: 45px;
    background: #38280b;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: normal;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 40, 11, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-btn-fixed:hover {
    background: #2d1e08;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.contact-btn-fixed .contact-icon {
    font-size: 1.2rem;
    font-weight: normal;
    line-height: 1;
}

/* Contact Form Modal */
.contact-form {
    max-width: none;
    text-align: left;
}

.contact-intro {
    color: #000;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: left;
}

#contact-modal .modal-content {
    text-align: left;
    max-width: 600px;
}

#contact-modal h2 {
    text-align: left;
    margin-bottom: 1rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: #000;
}

.order-summary-card {
    background: white; 
    border-radius: 0px; 
    padding: 1.5rem; 
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    transition: all 0.3s ease;
}

.order-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.order-summary-card h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    margin: 0 0 1rem 0;
}

.order-form { 
    background: white; 
    border-radius: 0px; 
    padding: 2rem; 
    grid-column: 1 / -1; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    transition: all 0.3s ease;
}

.order-form:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.order-form h2,
.order-form h3,
.order-form h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    margin-bottom: 2.5rem;
}

/* Form Row Layout - 2 Fields per Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-group { 
    margin-bottom: 1.5rem; 
    position: relative;
}

.form-group label { 
    display: block; 
    margin-bottom: 0.5rem; 
    font-weight: 400; 
    font-family: 'Roboto', sans-serif;
    color: #000;
    font-size: 0.9rem;
}

.form-group input, 
.form-group textarea { 
    width: 100%; 
    padding: 0.75rem 0; 
    border: none; 
    border-bottom: 2px solid #38280b; 
    border-radius: 0px; 
    box-sizing: border-box; 
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    background: transparent;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #38280b;
    border-bottom-width: 3px;
}

.form-group input:hover,
.form-group textarea:hover {
    border-bottom-color: #38280b;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    font-weight: 300;
}

.btn-primary { 
    width: 100%;
    background: #38280b; 
    color: white; 
    padding: 0.875rem; 
    border: none;
    border-radius: 0px; 
    cursor: pointer; 
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: white;
    color: #38280b;
    border: 1px solid #38280b;
    transform: translateY(-1px);
}

.btn-secondary {
    width: 100%;
    background: white;
    color: #38280b;
    padding: 0.875rem;
    border: 1px solid #38280b;
    border-radius: 0px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #38280b;
    color: white;
    transform: translateY(-1px);
}

.form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.footer { 
    background: #fff; 
    color: #000; 
    padding: 1.5rem 0; 
    text-align: center; 
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: left;
}

.footer-content p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-link {
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: #666;
    transform: translateY(-1px);
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #666;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    border: none;
    border-radius: 0;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s ease-out;
    text-align: left;
}

.close {
    color: #666;
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #000;
}

.impressum-content h2 {
    margin-top: 0;
    color: #000;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: left;
}

.impressum-content h3 {
    color: #000;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-align: left;
}

.impressum-content p {
    color: #000;
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-align: left;
}

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

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

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }
}

.payment-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.payment-section h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    margin: 0 0 0.8rem 0;
}

.payment-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-family: 'Roboto', sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Header: Logo links, Navigation oben rechts */
    
    .header {
        padding-left: 1rem;
     
    }
    
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-left: 0rem;
        padding-right: 0rem;
    }
    
    .header .logo {
        display: block; /* Show on mobile */
        margin: 0;
    }
    
    .header .logo img {
        height: 70px;
    }
    
    /* Hide sidebar logo on mobile */
    .configuration-sidebar .logo {
        display: none;
    }
    
    /* Breadcrumb Navigation oben rechts */
    .navigation {
        display: flex;
        gap: 0.25rem;
        align-items: center;
    }
    
    .nav-btn {
        padding: 0.25rem 0.5rem;
        font-size: 12px;
        border-radius: 4px;
        background: transparent;
        color: #666;
    }
    
    .nav-btn.active {
        background: transparent;
        color: #38280b;
        font-weight: 500;
    }
    
    /* Mobile Konfigurator Höhe */
    #canvas-zone {
        height: 300px;
    }
    
    .content-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    #tools {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .parameter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    #price-zone {
    font-size: 2rem;

}
    
    /* Stack form fields on mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    /* Mobile contact button adjustments */
    .contact-btn-fixed {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-btn-fixed .contact-icon {
        font-size: 1rem;
    }
    
    .contact-btn-container {
        justify-content: center;
    }
}

/* Confirmation View Styles */
#confirmation-view {
    padding: 2rem 0;
}

.confirmation-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
}

.confirmation-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    text-align: center;
}

.confirmation-icon {
    margin-bottom: 1.5rem;
}

.success-icon {
    font-size: 3rem;
    display: inline-block;
    animation: bounceIn 0.6s ease-out;
    color: #000;
    font-weight: bold;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.confirmation-card h2 {
    color: #000;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.confirmation-message {
    color: #000;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.order-details {
    text-align: left;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid #e9ecef;
}

.order-details h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #000;
    font-weight: 500;
}

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

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

.detail-label {
    font-weight: 500;
    color: #000;
}

.detail-value {
    font-weight: 400;
    color: #000;
}

.confirmation-info {
    text-align: left;
    margin: 2rem 0;
}

.confirmation-info p {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #000;
}

.confirmation-info ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.confirmation-info li {
    color: #000;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

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

.confirmation-actions .btn-primary {
    background: #38280b;
    border-color: #38280b;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    border: 1px solid #38280b;
}

.confirmation-actions .btn-primary:hover {
    background: #38280b;
    border-color: #38280b;
}

.confirmation-actions .btn-secondary {
    background: #38280b;
    border-color: #38280b;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    border: 1px solid #38280b;
}

.confirmation-actions .btn-secondary:hover {
    background: #38280b;
    border-color: #38280b;
}

@media (max-width: 768px) {
    .confirmation-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .confirmation-actions button {
        width: 100%;
    }
}

/* Error Message Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
