/**
 * DT Über Uns (About Us) Widget Styles
 */

.dt-uber-uns {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    padding: 50px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dt-uber-uns:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #f9b100, #ffcb52);
    z-index: 1;
}

.dt-uber-uns:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(249, 177, 0, 0.1) 0%, rgba(249, 177, 0, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.dt-uber-uns:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.dt-uber-uns * {
    box-sizing: border-box;
}

.dt-uber-uns-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Image on left (default) */
.dt-uber-uns-container.dt-image-position-left {
    flex-direction: row;
}

/* Image on right */
.dt-uber-uns-container.dt-image-position-right {
    flex-direction: row-reverse;
}

.dt-uber-uns-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.dt-uber-uns-image:before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 80%;
    height: 80%;
    border: 3px solid #f9b100;
    border-radius: 10px;
    z-index: -1;
    opacity: 0.2;
    transition: all 0.4s ease;
}

.dt-uber-uns-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: saturate(1.05);
}

.dt-uber-uns-image:hover img {
    transform: scale(1.03) translateY(-8px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

.dt-uber-uns-image:hover:before {
    transform: translate(5px, 5px);
    opacity: 0.4;
}

.dt-uber-uns-content {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.dt-uber-uns-subtitle {
    color: #f9b100;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(249, 177, 0, 0.08);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.dt-uber-uns-container:hover .dt-uber-uns-subtitle {
    transform: translateX(5px);
    background-color: rgba(249, 177, 0, 0.12);
}

.dt-uber-uns-title {
    color: #1a1a1a;
    font-size: 36px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 18px;
    line-height: 1.2;
}

.dt-uber-uns-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, #f9b100, #ffcb52);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.dt-uber-uns-container:hover .dt-uber-uns-title:after {
    width: 80px;
}

/* Title divider */
.dt-title-divider {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, #f9b100, #ffcb52);
    margin: 20px 0 25px;
    border-radius: 3px;
    transition: width 0.3s ease, transform 0.3s ease;
}

.dt-uber-uns-container:hover .dt-title-divider {
    width: 80px;
    transform: translateX(5px);
}

/* Highlighted text */
.dt-highlighted-text {
    color: #f9b100;
    position: relative;
    display: inline-block;
}

.dt-highlighted-text:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(249, 177, 0, 0.1);
    z-index: -1;
    transition: height 0.3s ease;
}

.dt-uber-uns-container:hover .dt-highlighted-text:after {
    height: 40%;
}

.dt-uber-uns-description {
    color: #555555;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 30px;
    position: relative;
    max-width: 95%;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.dt-uber-uns-container:hover .dt-uber-uns-description {
    opacity: 1;
}

.dt-uber-uns-button {
    display: inline-block;
    background: linear-gradient(135deg, #f9b100, #ffcb52);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(249, 177, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.dt-uber-uns-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #e09900, #f9b100);
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: 50px;
}

.dt-uber-uns-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(249, 177, 0, 0.35);
    color: #ffffff;
}

.dt-uber-uns-button:hover:before {
    width: 100%;
}

/* Layout Styles */
.dt-layout-modern {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.dt-layout-modern:before {
    height: 8px;
    background: linear-gradient(90deg, #f9b100, #ffcb52, #f9b100);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

.dt-layout-modern .dt-uber-uns-subtitle {
    background-color: rgba(249, 177, 0, 0.12);
    padding: 6px 18px;
    border-radius: 30px;
}

.dt-layout-minimal {
    box-shadow: none;
    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.dt-layout-minimal:before {
    height: 1px;
    background: #f9b100;
}

.dt-layout-minimal .dt-uber-uns-subtitle {
    background: none;
    padding: 0;
    position: relative;
}

.dt-layout-minimal .dt-uber-uns-subtitle:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #f9b100;
    transition: width 0.3s ease;
}

.dt-layout-minimal:hover .dt-uber-uns-subtitle:after {
    width: 50px;
}

/* Image Shapes */
.dt-image-shape-rounded img {
    border-radius: 20px !important;
}

.dt-image-shape-circle img {
    border-radius: 50% !important;
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* Button Icon Styles */
.dt-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.dt-button-icon-before {
    margin-right: 10px;
}

.dt-button-icon-after {
    margin-left: 10px;
}

.dt-uber-uns-button:hover .dt-button-icon-after {
    transform: translateX(5px);
}

.dt-uber-uns-button:hover .dt-button-icon-before {
    transform: translateX(-5px);
}

/* Animation for gradient background */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Image Animation */
.dt-image-animated {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Responsive styles */
@media screen and (max-width: 992px) {
    .dt-uber-uns-container {
        gap: 40px;
    }
    
    .dt-uber-uns-title {
        font-size: 32px;
    }
}

@media screen and (max-width: 768px) {
    .dt-uber-uns {
        padding: 40px;
    }
    
    .dt-uber-uns-container {
        flex-direction: column;
    }
    
    .dt-uber-uns-container.dt-image-position-left,
    .dt-uber-uns-container.dt-image-position-right {
        flex-direction: column;
    }
    
    .dt-uber-uns-image,
    .dt-uber-uns-content {
        width: 100%;
    }
    
    .dt-uber-uns-image {
        margin-bottom: 20px;
    }
    
    .dt-uber-uns-title {
        font-size: 28px;
    }
    
    .dt-uber-uns-subtitle {
        font-size: 16px;
    }
    
    .dt-uber-uns-description {
        font-size: 16px;
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .dt-uber-uns {
        padding: 30px;
    }
    
    .dt-uber-uns-container {
        gap: 25px;
    }
    
    .dt-uber-uns-title {
        font-size: 24px;
    }
    
    .dt-uber-uns-image:before {
        display: none;
    }
    
    .dt-uber-uns-button {
        width: 100%;
        text-align: center;
        font-size: 15px;
        padding: 14px 28px;
    }
}
