/* ========================================
   BAD-PLANER STYLES - PREMIUM DESIGN
   Virtueller Badezimmer-Konfigurator
   ======================================== */

.planner-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2.5rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    min-height: calc(100vh - 200px);
}

/* Sidebar mit Glasmorphismus */
.planner-sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    position: sticky;
    top: 100px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Custom Scrollbar */
.planner-sidebar::-webkit-scrollbar {
    width: 8px;
}

.planner-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.planner-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
    border-radius: 10px;
}

.planner-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #B45309 0%, #D97706 100%);
}

.planner-section {
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.planner-section:first-child {
    padding-top: 0;
}

.planner-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.planner-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}

.planner-section h2 svg {
    width: 24px;
    height: 24px;
    color: #D97706;
    filter: drop-shadow(0 2px 4px rgba(217, 119, 6, 0.2));
}

/* Input Groups */
.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.625rem;
    letter-spacing: -0.01em;
}

.input-group input[type="number"],
.input-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #1F2937;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.input-group input[type="number"]:hover,
.input-group select:hover {
    border-color: #D1D5DB;
}

.input-group input[type="number"]:focus,
.input-group select:focus {
    outline: none;
    border-color: #D97706;
    box-shadow:
        0 0 0 4px rgba(217, 119, 6, 0.1),
        0 4px 12px rgba(217, 119, 6, 0.15);
    transform: translateY(-1px);
}

.size-info {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #92400E;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
    border: 2px solid rgba(251, 191, 36, 0.3);
    position: relative;
    overflow: hidden;
}

.size-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

/* Item Grid */
.item-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.item-btn {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 14px;
    padding: 1.25rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.item-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.item-btn > * {
    position: relative;
    z-index: 1;
}

.item-btn:hover {
    border-color: #D97706;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.2);
}

.item-btn:hover::before {
    opacity: 0.3;
}

.item-btn.active {
    border-color: #D97706;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.25);
    transform: translateY(-2px);
}

.item-btn.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.item-btn svg {
    width: 36px;
    height: 36px;
    color: #D97706;
    transition: transform 0.3s ease;
}

.item-btn:hover svg,
.item-btn.active svg {
    transform: scale(1.1);
}

.item-btn span {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a365d;
}

.item-btn small {
    font-size: 0.8125rem;
    color: #6B7280;
    font-weight: 500;
}

/* Options */
.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: white;
    border: 2px solid transparent;
}

.checkbox-label:hover {
    background: #F9FAFB;
    border-color: #E5E7EB;
}

.checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #D97706;
    border-radius: 6px;
}

.checkbox-label input[type="checkbox"]:checked + span {
    color: #1a365d;
    font-weight: 600;
}

.checkbox-label span {
    font-size: 0.9375rem;
    color: #4B5563;
    transition: all 0.2s ease;
}

/* Quality Options */
.quality-options {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.radio-card {
    display: block;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-content {
    padding: 1.25rem;
    border: 2px solid #E5E7EB;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    position: relative;
}

.radio-card:hover .radio-content {
    border-color: #D97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.radio-card input[type="radio"]:checked + .radio-content {
    border-color: #D97706;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.2);
}

.radio-card input[type="radio"]:checked + .radio-content::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.2);
}

.radio-content strong {
    display: block;
    color: #1a365d;
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
}

.radio-content small {
    color: #6B7280;
    font-size: 0.875rem;
}

/* Cost Summary */
.cost-summary {
    background: linear-gradient(135deg, #1a365d 0%, #2563EB 100%);
    margin: 0 -2rem -2rem -2rem;
    padding: 2rem;
    border-radius: 0 0 20px 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.cost-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.cost-summary h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cost-summary h2 svg {
    color: #FCD34D;
}

.cost-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 1.75rem;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9375rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

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

.cost-row.total {
    font-size: 1.5rem;
    font-weight: 800;
    border-bottom: none;
    padding-top: 1rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    color: #FCD34D;
    margin-top: 0.5rem;
}

.btn-request-quote {
    width: 100%;
    background: linear-gradient(135deg, #FCD34D 0%, #FBBF24 100%);
    color: #92400E;
    border: none;
    padding: 1.125rem 1.5rem;
    border-radius: 12px;
    font-size: 1.0625rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(252, 211, 77, 0.4);
    letter-spacing: -0.01em;
}

.btn-request-quote:hover {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(252, 211, 77, 0.5);
}

.btn-request-quote:active {
    transform: translateY(0);
}

/* Canvas Wrapper */
.planner-canvas-wrapper {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.canvas-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #F3F4F6;
}

.tool-btn {
    background: white;
    border: 2px solid #E5E7EB;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #374151;
}

.tool-btn:hover {
    border-color: #D97706;
    background: #FEF3C7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.tool-btn svg {
    width: 20px;
    height: 20px;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: #F3F4F6;
    padding: 0.375rem;
    border-radius: 12px;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6B7280;
}

.view-btn.active {
    background: white;
    color: #1a365d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Canvas */
#bath-canvas {
    width: 100%;
    height: 600px;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    cursor: crosshair;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.canvas-hint {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border-radius: 12px;
    color: #1E40AF;
    font-size: 0.9375rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.canvas-hint svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #3B82F6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

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

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: #F3F4F6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #E5E7EB;
    transform: rotate(90deg);
}

.modal-content h2 {
    color: #1a365d;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.modal-content > p {
    color: #6B7280;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

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

.form-group label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.625rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #D97706;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 1rem 1.75rem;
    border-radius: 12px;
    font-size: 1.0625rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}

.btn-primary {
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #B45309 0%, #D97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.4);
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 2px solid #E5E7EB;
}

.btn-secondary:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
}

/* Info Section */
.info-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
}

.info-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.info-section h2 {
    text-align: center;
    color: #1a365d;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

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

.info-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.75rem;
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.3);
}

.info-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.info-card h3 {
    color: #1a365d;
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    letter-spacing: -0.01em;
}

.info-card p {
    color: #6B7280;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1200px) {
    .planner-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .planner-sidebar {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .planner-container {
        padding: 1.5rem 1rem;
    }

    .planner-sidebar {
        padding: 1.5rem;
    }

    .item-grid {
        grid-template-columns: 1fr;
    }

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

    .canvas-toolbar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .view-toggle {
        justify-content: center;
    }

    #bath-canvas {
        height: 400px;
    }

    .info-section h2 {
        font-size: 2rem;
    }

    .modal-content {
        padding: 2rem;
    }

    .form-actions {
        flex-direction: column;
    }
}
