/* SP-Traumschmiede - About Section Responsive Fix */
/* Fixes text cutoff and improves responsive layout */

/* ============================================
   ABOUT SECTION - Responsive Layout Fix
   ============================================ */
.about-premium {
    /* Let content define height and avoid clipping */
    min-height: auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: stretch;
    position: relative;
    overflow: visible;
    padding: 0;
    background: #000000; /* Pure black background */
}

/* Ensure a consistent dark overlay over the entire section,
   including top/bottom padding areas, regardless of layout */
.about-premium::after {
    content: '';
    position: absolute;
    inset: 0; /* cover including padding area */
    background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
                radial-gradient(circle at 20% 30%, rgba(204,167,56,0.08), transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(204,167,56,0.06), transparent 60%);
    z-index: 2;
    pointer-events: none;
}

/* Left side with image - better responsive handling */
.about-left {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    z-index: 1; /* below overlay */
}

/* Right side with content - more space for text */
.about-right {
    background: rgba(0, 0, 0, 0.95); /* Pure black, no gray */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: auto;
    clip-path: none; /* Prevent text cutoff */
    z-index: 3; /* above overlay */
    padding: 6rem 4rem;
}

/* Add subtle separator instead of clip-path */
.about-right::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(204, 167, 56, 0.3) 50%,
        transparent 100%);
}

/* Content wrapper with better max-width */
.about-content-wrapper {
    max-width: 820px; /* Give text comfortable width */
    width: 100%;
    z-index: 2;
    position: relative;
}

/* Title with responsive sizing */
.about-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-family: 'Didot', serif;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #ffffff;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Description with better readability */
.about-description {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Stats boxes without gray background */
.stat-box {
    background: rgba(0, 0, 0, 0.5); /* Pure black background */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(204, 167, 56, 0.15);
    padding: 2rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Minimal hover effect */
.stat-box:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(204, 167, 56, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Remove animation for cleaner look */
.stat-box::before {
    display: none;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Large tablets */
@media (max-width: 1200px) {
    .about-premium { grid-template-columns: 1fr 1.2fr; }
    .about-right { padding: 4rem 3rem; }
}

/* Tablets and small screens */
@media (max-width: 1024px) {
    .about-premium {
        grid-template-columns: 1fr; /* Stack for tablets */
        min-height: auto;
    }
    .about-left {
        height: 40vh;
        min-height: 300px;
    }
    .about-right {
        padding: 4rem 2rem;
    }
    .about-right::before { display: none; }
    .about-content-wrapper { max-width: 100%; }
}

/* Mobile devices */
@media (max-width: 768px) {
    .about-premium {
        min-height: auto;
    }
    
    .about-left {
        height: 30vh;
        min-height: 250px;
    }
    
    .about-right {
        padding: 2rem 0.75rem;
        padding-top: 7em;
    }
    
    .about-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .about-title .gold-accent {
        font-size: 1.75rem;
    }
    
    .about-description {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-box {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .about-left {
        height: 25vh;
        min-height: 200px;
    }
    
    .about-right {
        padding: 2.5rem 1rem;
        padding-top: 7em;
    }
    
    .about-pretitle {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
    }
    
    .about-title {
        font-size: 1.75rem;
    }
    
    .about-title .gold-accent {
        font-size: 1.5rem;
        margin-top: 0.3rem;
    }
    
    .about-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* Very small mobile devices */
@media (max-width: 400px) {
    .about-right {
        padding: 2rem 0.75rem;
        padding-top: 7em;
    }
    
    .about-title {
        font-size: 1.5rem;
    }
    
    .about-title .gold-accent {
        font-size: 1.3rem;
    }
    
    .about-description {
        font-size: 0.9rem;
    }
}

/* Ensure text is never cut off */
@media (max-width: 1024px) {
    /* Stack layout on tablets and below */
    .about-premium {
        display: block;
    }
    
    .about-left,
    .about-right {
        position: relative;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .about-content-wrapper {
        max-width: 100%;
        padding: 0;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .about-right {
        background: #000000;
    }
    
    .stat-box {
        background: #000000;
        border: 2px solid #CCA738;
    }
}
