/* Cal Sans Font */
@font-face {
    font-family: 'Cal Sans';
    src: url('https://bear.sbdemo.at/wp-content/uploads/cal-sans-v2-latin-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.online-angebot-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333;
    max-width: 140rem;
    margin: 0 auto;
    padding: 2rem;
}

.oa-header {
    text-align: center;
    margin-bottom: 4rem;
}

.oa-header h1 {
    font-family: 'Cal Sans', sans-serif;
    font-size: 3.6rem;
    margin: 0;
    color: #1a1a1a;
}

.oa-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

/* Left Column Styles */
.oa-left-column {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.oa-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.oa-logo img {
    max-width: 20rem;
    height: auto;
}

.oa-section h2 {
    font-family: 'Cal Sans', sans-serif;
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

/* Portfolio Grid */
.oa-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 2rem;
}

.oa-portfolio-item {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.4rem 0.6rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.oa-portfolio-item:hover {
    transform: translateY(-0.4rem);
    box-shadow: 0 0.8rem 2.5rem rgba(0, 0, 0, 0.15);
}

.oa-portfolio-item img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
}

.oa-portfolio-info {
    padding: 1.5rem;
}

.oa-portfolio-info h4 {
    margin: 0 0 1rem 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.oa-portfolio-info a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.oa-portfolio-info a:hover {
    color: #005a87;
}

/* Testimonials */
.oa-testimonials {
    display: grid;
    gap: 2rem;
}

.oa-testimonial {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 2rem;
    border-left: 0.4rem solid #007cba;
}

.oa-testimonial p {
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.7;
}

.oa-testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.oa-author-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #007cba;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.4rem;
}

.oa-author-info strong {
    font-size: 1.4rem;
}

/* Benefits */
.oa-benefits {
    display: grid;
    gap: 1.5rem;
}

.oa-benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.8rem;
}

.oa-checkmark {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

/* FAQ */
.oa-faq {
    display: grid;
    gap: 2rem;
}

.oa-faq-item {
    background: #fff;
    border: 0.1rem solid #e1e1e1;
    border-radius: 1rem;
    padding: 2rem;
}

.oa-faq-item h4 {
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    color: #1a1a1a;
    font-weight: 600;
}

.oa-faq-item p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.oa-cta-section {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    border-radius: 1rem;
    color: white;
}

.oa-cta-button {
    background: #fff;
    color: #007cba;
    border: none;
    padding: 1.5rem 3rem;
    font-size: 1.8rem;
    font-weight: 600;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.oa-cta-button:hover {
    background: #f0f0f0;
    transform: translateY(-0.2rem);
}

.oa-cta-subtitle {
    margin: 0;
    font-size: 1.4rem;
    opacity: 0.9;
}

/* Right Column */
.oa-right-column {
    position: sticky;
    top: 2rem;
}

.oa-document-container {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 0.4rem 2rem rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.oa-document {
    padding: 2rem;
}

.oa-document + .oa-document {
    border-top: 0.1rem solid #e1e1e1;
}

/* Modal Styles */
.oa-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(0.4rem);
}

.oa-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 3rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 60rem;
    position: relative;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
}

.oa-modal-close {
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

.oa-modal-close:hover {
    color: #000;
}

.oa-modal-content h3 {
    font-family: 'Cal Sans', sans-serif;
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.oa-modal-content p {
    margin-bottom: 3rem;
    color: #666;
    line-height: 1.6;
}

#calendar-container {
    margin: 2rem 0;
    text-align: center;
}

.oa-modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

.oa-accept-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 1.2rem 2.4rem;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
    flex: 1;
}

.oa-accept-button:hover {
    background: #005a87;
}

.oa-cancel-button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 1.2rem 2.4rem;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
    flex: 1;
}

.oa-cancel-button:hover {
    background: #5a6268;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .oa-main-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .oa-right-column {
        position: static;
    }
    
    .oa-portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    }
}

@media (max-width: 768px) {
    .online-angebot-container {
        padding: 1rem;
    }
    
    .oa-header h1 {
        font-size: 2.8rem;
    }
    
    .oa-main-content {
        gap: 3rem;
    }
    
    .oa-left-column {
        gap: 3rem;
    }
    
    .oa-section h2 {
        font-size: 2rem;
    }
    
    .oa-portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .oa-modal-content {
        width: 95%;
        margin: 2% auto;
        padding: 2rem;
    }
    
    .oa-modal-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .oa-header h1 {
        font-size: 2.4rem;
    }
    
    .oa-cta-button {
        font-size: 1.6rem;
        padding: 1.2rem 2rem;
    }
    
    .oa-testimonial {
        padding: 1.5rem;
    }
    
    .oa-faq-item {
        padding: 1.5rem;
    }
    
    .oa-faq-item h4 {
        font-size: 1.6rem;
    }
}

/* Success Message */
.oa-success-message {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1001;
    background: #28a745;
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0.4rem 2rem rgba(0, 0, 0, 0.2);
    max-width: 40rem;
    display: none;
}

.oa-success-content {
    font-size: 1.4rem;
    line-height: 1.5;
}

/* Button States */
.oa-cta-button.accepted {
    background: #28a745 !important;
    color: white !important;
    cursor: default;
}

.oa-cta-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Modal Body Scroll Lock */
body.modal-open {
    overflow: hidden;
}

/* FAQ Accordion */
.oa-faq-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.oa-faq-item:hover {
    border-color: #007cba;
}

.oa-faq-item.active {
    border-color: #007cba;
    background: #f8f9fa;
}

.oa-faq-item h4::after {
    content: '+';
    float: right;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.oa-faq-item.active h4::after {
    transform: rotate(45deg);
}

.oa-faq-item p {
    display: none;
}

.oa-faq-item.active p {
    display: block;
}

/* Scroll Animations */
.oa-section {
    opacity: 0;
    transform: translateY(2rem);
    transition: all 0.6s ease;
}

.oa-section.animated.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Lazy Loading */
.oa-portfolio-item img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.oa-portfolio-item img:not(.lazy) {
    opacity: 1;
}

/* Loading States */
.oa-loading {
    position: relative;
    pointer-events: none;
}

.oa-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    margin: -1rem 0 0 -1rem;
    border: 0.2rem solid #f3f3f3;
    border-top: 0.2rem solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}