/* chlibesser.ch Custom Styles */
:root {
    --chlibesser-red: #e30613;
    --chlibesser-gray: #898687;
    --chlibesser-white: #ffffff;
    --chlibesser-dark-gray: #5a5a5a;
}

/* Remove the problematic overflow rules that cause double scrollbars */
.page-wrapper {
    overflow-x: visible !important;
}

/* Service Image Placeholders */
.service-image-placeholder {
    width: 100%;
    height: 300px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.service-image-placeholder .placeholder-text {
    color: #ffffff;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.6;
}

/* chlibesser.ch Farbschema */
.text-chlibesser-red {
    color: var(--chlibesser-red) !important;
}

.text-chlibesser-gray {
    color: var(--chlibesser-gray) !important;
}

.bg-chlibesser-red {
    background-color: var(--chlibesser-red) !important;
}

.bg-chlibesser-gray {
    background-color: var(--chlibesser-gray) !important;
}

/* chlibesser.ch Buttons */
.chlibesser-btn-primary {
    background: linear-gradient(135deg, var(--chlibesser-red) 0%, #c70511 100%);
    border: none;
    color: var(--chlibesser-white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}

.chlibesser-btn-primary:hover {
    background: linear-gradient(135deg, #c70511 0%, var(--chlibesser-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(227, 6, 19, 0.4);
    color: var(--chlibesser-white);
}

.chlibesser-btn-secondary {
    background: linear-gradient(135deg, var(--chlibesser-gray) 0%, var(--chlibesser-dark-gray) 100%);
    border: none;
    color: var(--chlibesser-white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(137, 134, 135, 0.3);
}

.chlibesser-btn-secondary:hover {
    background: linear-gradient(135deg, var(--chlibesser-dark-gray) 0%, var(--chlibesser-gray) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(137, 134, 135, 0.4);
    color: var(--chlibesser-white);
}

/* chlibesser.ch Emblem Container */
.chlibesser-emblem-container {
    position: absolute;
    top: -100px;
    right: -200px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 800px;
    height: 800px;
    background: transparent;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.chlibesser-emblem {
    width: 600px;
    height: auto;
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.1));
    opacity: 0.15;
}

/* Clean Dashboard Container - mit Monitor-Rahmen */
.dashboard-clean {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 0;
    max-width: 845px;
    background: transparent !important;
    border: none;
    padding: 0;
}

.dashboard-clean-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.15));
    transition: all 0.3s ease;
    background: transparent !important;
    mix-blend-mode: normal;
    opacity: 1;
}

.dashboard-clean-image:hover {
    transform: scale(1.02) translateY(-8px);
    filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.2));
}

/* Floating Animation */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-20px);
    }
}

/* Gentle Sway Animation für Headlines */
@keyframes gentleSway {
    0% { 
        transform: translateX(0px);
    }
    25% { 
        transform: translateX(-8px);
    }
    50% { 
        transform: translateX(0px);
    }
    75% { 
        transform: translateX(8px);
    }
    100% { 
        transform: translateX(0px);
    }
}

.chlibesser-gentle-sway {
    animation: gentleSway 8s ease-in-out infinite;
    animation-delay: 1s;
}

/* chlibesser.ch Shape Animation */
.chlibesser-shape-animation {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.chlibesser-shape-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 150%;
    height: 150%;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.1) 0%, rgba(137, 134, 135, 0.1) 100%);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Desktop specific - größeres Dashboard */
@media (min-width: 1200px) {
    .dashboard-clean {
        max-width: 900px;
    }
}

@media (min-width: 993px) and (max-width: 1199px) {
    .dashboard-clean {
        max-width: 800px;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .chlibesser-emblem-container {
        width: 600px;
        height: 600px;
        top: -50px;
        right: -150px;
    }
    
    .chlibesser-emblem {
        width: 450px;
    }
    
    .banner h1 {
        font-size: 2.5rem !important;
    }
    
    .dashboard-clean {
        max-width: 650px;
    }
}

@media (max-width: 768px) {
    .chlibesser-emblem-container {
        width: 400px;
        height: 400px;
        top: -20px;
        right: -100px;
    }
    
    .chlibesser-emblem {
        width: 300px;
        opacity: 0.1;
    }
    
    .banner h1 {
        font-size: 2rem !important;
    }
    
    .dashboard-clean {
        max-width: 100%;
        margin: 30px auto 0;
    }
    
    .dashboard-clean-image {
        border-radius: 8px;
    }
}

/* Dashboard Image Enhancement */
.dashboard-clean-image:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.2), 0 12px 25px rgba(0,0,0,0.15);
}

/* Override original banner styles */
.banner {
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Fix text-transform für alle Texte - chlibesser.ch soll immer kleingeschrieben sein */
*,
*::before,
*::after,
.banner h1,
.banner h1 *,
.banner h1 span,
h1, h2, h3, h4, h5, h6,
.text-chlibesser-red,
.navbar-nav .nav-link,
.themeht-btn,
.featured-title h5,
.service-title h4,
.featured-title,
.featured-desc,
.featured-item,
.wow,
section,
div,
span,
p,
body {
    text-transform: none !important;
    font-variant: normal !important;
    font-feature-settings: normal !important;
}

.banner h1 span {
    background: linear-gradient(135deg, var(--chlibesser-red) 0%, #c70511 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Navigation always white background and sticky */
.header {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 8px 0;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.header.fixed {
    background: white !important;
}

.navbar {
    background: white !important;
    padding-top: 8px;
    padding-bottom: 8px;
}

#header-wrap {
    background: white !important;
    padding: 8px 0;
}

/* Add padding to body to compensate for fixed header */
body {
    padding-top: 80px;
}

/* Disable ALL header animation effects */
.header,
.header.fixed,
.header.scrolled,
.header.hide,
.header.show,
.header.up,
.header.down,
#site-header,
#site-header.fixed,
#site-header.scrolled {
    transform: translateY(0px) !important;
    transition: none !important;
    position: fixed !important;
    top: 0 !important;
    animation: none !important;
    will-change: auto !important;
}

/* Override any JavaScript inline styles */
.header[style*="transform"],
#site-header[style*="transform"] {
    transform: translateY(0px) !important;
    top: 0 !important;
}

/* Contact Info Hover Effects */
.contact-info-item {
    transition: all 0.3s ease !important;
    cursor: pointer;
}

.contact-info-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
    background: #f8f9fa !important;
}

.contact-info-item a {
    transition: all 0.3s ease;
}

.contact-info-item:hover a {
    color: var(--chlibesser-red) !important;
    font-weight: 600;
}

.contact-info-item:hover .contact-icon i {
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Make entire contact item clickable for phone, email, and address */
.contact-info-item[data-tel],
.contact-info-item[data-email],
.contact-info-item[data-address] {
    cursor: pointer;
}

/* Navigation anpassen */
.navbar-brand img {
    height: 40px !important;
    width: auto;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar-brand {
    margin: 0 !important;
    padding: 0 !important;
}

.navbar-nav .nav-link {
    text-transform: none !important;
}

.nav-link:hover {
    color: var(--chlibesser-red) !important;
}

.nav-link.active {
    color: var(--chlibesser-red) !important;
}

/* All Primary Buttons */
.themeht-btn.primary-btn {
    background: linear-gradient(135deg, #6c757d 0%, #dc2626 100%) !important;
    border: none;
    color: var(--chlibesser-white);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background-size: inherit !important;
}

.themeht-btn.primary-btn:hover,
.themeht-btn.primary-btn:focus {
    background: linear-gradient(135deg, #6c757d 0%, #b91c1c 100%) !important;
    background-position: initial !important;
    color: var(--chlibesser-white);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

/* Header Button Specific */
.navbar .themeht-btn.primary-btn {
    padding: 8px 20px;
    border-radius: 25px;
}

.navbar .themeht-btn.primary-btn:hover {
    transform: translateY(-1px);
}

/* Ensure transparency for dashboard */
.dashboard-clean,
.dashboard-clean *,
.dashboard-clean::before,
.dashboard-clean::after {
    background: transparent !important;
    background-color: transparent !important;
}

.dashboard-clean-image {
    background: none !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
}

/* Separator Lines */
.separator-line {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--chlibesser-red) 50%, transparent 100%);
    margin: 40px 0;
    opacity: 0.6;
}

/* Services Section Styles */
#services {
    padding: 80px 0;
    background: transparent;
}

.theme-title h6 {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.theme-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    line-height: 1.2;
}

.service-item {
    padding: 40px 30px;
    background: transparent !important;
    border-radius: 15px;
    box-shadow: none !important;
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 30px;
    border: none !important;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: none !important;
    background: transparent !important;
}

.service-icon-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.1) 0%, rgba(137, 134, 135, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon-placeholder {
    background: linear-gradient(135deg, var(--chlibesser-red) 0%, #c70511 100%) !important;
    transform: scale(1.1);
}

.service-item:hover .service-icon-placeholder i {
    color: white !important;
}

.service-title h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.service-desc p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 25px;
}

.chlibesser-service-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--chlibesser-red) 0%, #c70511 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    text-decoration: none;
    margin: 0 auto;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    border: none;
}

.chlibesser-service-btn:hover {
    background: linear-gradient(135deg, #c70511 0%, var(--chlibesser-red) 100%) !important;
    transform: scale(1.1);
    color: white !important;
    box-shadow: 0 8px 25px rgba(227, 6, 19, 0.3);
}

/* Override any template button styles */
.service-btn {
    background: linear-gradient(135deg, var(--chlibesser-red) 0%, #c70511 100%) !important;
    color: white !important;
    border: none !important;
}

.service-btn:hover {
    background: linear-gradient(135deg, #c70511 0%, var(--chlibesser-red) 100%) !important;
    color: white !important;
}

/* Service Links */
.service-link {
    color: var(--chlibesser-red);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.service-link:hover {
    color: #c70511;
    transform: translateX(5px);
}

/* Override any template service styles */
.service-item.style-1 {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.service-item.style-1:hover {
    background: transparent !important;
    box-shadow: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .theme-title h2 {
        font-size: 2rem;
    }
    
    #services {
        padding: 60px 0;
    }
    
    .service-item {
        padding: 30px 20px;
        background: transparent !important;
    }
    
    /* Better centering for service titles and icons on mobile */
    .featured-item.style-1 {
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .featured-icon {
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    .featured-title {
        text-align: center !important;
        width: 100% !important;
    }
    
    .featured-title h2 {
        text-align: center !important;
        margin: 0 auto !important;
        font-size: 1.8rem !important;
    }
    
    /* Service content text centered on mobile */
    .service-content .lead,
    .service-content p {
        text-align: center !important;
    }
}

/* Timeline Content Spacing Adjustment */
.main-timeline .timeline-content {
    padding-left: 15px !important; /* Reduced from ~25px */
    padding-right: 15px !important; /* Reduced from ~25px */
}

.main-timeline .timeline-content.timeline-order-3b {
    padding-right: 15px !important;
    padding-left: 10px !important;
}

.main-timeline .timeline-content.timeline-order-3 {
    padding-left: 15px !important;
    padding-right: 10px !important;
}

/* Timeline Line Styling */
.main-timeline::before {
    background: var(--chlibesser-red) !important;
    width: 4px !important; /* Thicker line */
}

.main-timeline .timeline-order-1:before,
.main-timeline .timeline-order-1b:before {
    background: var(--chlibesser-red) !important;
    height: 3px !important; /* Thicker connecting lines */
}

/* Mobile Timeline Date Styling and Layout */
@media (max-width: 768px) {
    /* Make all dates a bit smaller on mobile */
    .timeline_item .date {
        font-size: 1.1rem !important;
    }
    
    /* Make date ranges with two numbers even smaller */
    .timeline_item .date:has(br) {
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
    }
    
    /* Fallback for browsers that don't support :has() - using a more specific selector */
    .timeline_item .date br {
        line-height: 0.8 !important;
    }
    
    /* Alternative approach: target the specific date ranges by content */
    .timeline_item .date[style*="text-align: center"] {
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
        text-align: left !important;
    }
    
    /* Make all timeline content left-aligned on mobile */
    .timeline_item .timeline-content {
        text-align: left !important;
    }
    
    .timeline_item .timeline-content h4 {
        text-align: left !important;
    }
    
    .timeline_item .timeline-content p {
        text-align: left !important;
    }
    
    /* Override any right-aligned timeline items */
    .timeline_item .timeline-content[style*="text-align: right"] {
        text-align: left !important;
    }
    
    .timeline_item .timeline-content h4[style*="text-align: right"] {
        text-align: left !important;
    }
    
    .timeline_item .timeline-content p[style*="text-align: right"] {
        text-align: left !important;
    }
    
    /* Force all timeline content to have the same positioning on mobile - Complete Reset */
    .main-timeline .timeline_item .timeline-content {
        float: none !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        text-align: left !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
    }
    
    /* Target all timeline content classes specifically */
    .main-timeline .timeline_item .timeline-content.timeline-order-3,
    .main-timeline .timeline_item .timeline-content.timeline-order-3b,
    .main-timeline .timeline_item .timeline-content.col-md {
        float: none !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        text-align: left !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
    
    /* Override ALL inline styles for headings and paragraphs */
    .main-timeline .timeline_item .timeline-content h4,
    .main-timeline .timeline_item .timeline-content.timeline-order-3 h4,
    .main-timeline .timeline_item .timeline-content.timeline-order-3b h4 {
        text-align: left !important;
    }
    
    .main-timeline .timeline_item .timeline-content p,
    .main-timeline .timeline_item .timeline-content.timeline-order-3 p,
    .main-timeline .timeline_item .timeline-content.timeline-order-3b p {
        text-align: left !important;
    }
}

@media (max-width: 576px) {
    /* Make all dates smaller on phones */
    .timeline_item .date {
        font-size: 1rem !important;
    }
    
    /* Make date ranges with two numbers even smaller */
    .timeline_item .date:has(br) {
        font-size: 0.8rem !important;
        line-height: 1.1 !important;
    }
    
    /* Alternative approach: target the specific date ranges by content */
    .timeline_item .date[style*="text-align: center"] {
        font-size: 0.8rem !important;
        line-height: 1.1 !important;
        text-align: left !important;
    }
}

/* Project Teaser Styles */
.project-teaser-item {
    transition: all 0.3s ease !important;
    cursor: pointer;
}

.project-teaser-item:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
    background: white !important;
}

.project-link {
    transition: all 0.3s ease !important;
}

.project-link:hover {
    color: #c70511 !important;
    transform: translateX(5px) !important;
    text-decoration: none !important;
}

/* Alternative: Dark lines instead of red */
/*
.main-timeline::before {
    background: #2c3e50 !important;
    width: 4px !important;
}

.main-timeline .timeline-order-1:before,
.main-timeline .timeline-order-1b:before {
    background: #2c3e50 !important;
    height: 3px !important;
}
*/

/* Vertically center emblems in value items */
.value-item {
    display: flex !important;
    align-items: center !important;
}

.value-item .value-number {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 80px !important;
    height: auto !important;
    flex-shrink: 0;
}

.value-item .value-number img {
    display: block;
    margin: 0 !important;
}

.value-item .value-content {
    flex: 1;
    margin: 0 !important;
}

/* Mobile-specific styles for service collapsible sections */
@media (max-width: 768px) {
    /* Hide logo emblem in collapsible sections on mobile */
    #processModelingCollapse .value-number,
    #digitalTransformationCollapse .value-number,
    #softwareentwicklungCollapse .value-number,
    #personalSupportCollapse .value-number {
        display: none !important;
    }
    
    /* Adjust value items for mobile without logo */
    #processModelingCollapse .value-item,
    #digitalTransformationCollapse .value-item,
    #softwareentwicklungCollapse .value-item,
    #personalSupportCollapse .value-item {
        padding: 20px 15px !important;
        margin-bottom: 20px !important;
    }
    
    /* Full width content on mobile */
    #processModelingCollapse .value-content,
    #digitalTransformationCollapse .value-content,
    #softwareentwicklungCollapse .value-content,
    #personalSupportCollapse .value-content {
        margin-left: 0 !important;
        padding-left: 0 !important;
        width: 100% !important;
    }
    
    /* Reduce padding in collapse containers */
    #processModelingCollapse > div,
    #digitalTransformationCollapse > div,
    #softwareentwicklungCollapse > div,
    #personalSupportCollapse > div {
        padding: 15px !important;
    }
    
    /* Smaller text for better mobile readability */
    #processModelingCollapse .value-content p,
    #digitalTransformationCollapse .value-content p,
    #softwareentwicklungCollapse .value-content p,
    #personalSupportCollapse .value-content p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    /* Smaller headings in collapsible sections */
    #processModelingCollapse .value-content h5,
    #digitalTransformationCollapse .value-content h5,
    #softwareentwicklungCollapse .value-content h5,
    #personalSupportCollapse .value-content h5,
    #softwareentwicklungCollapse .value-content h6 {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
    }
}

@media (max-width: 576px) {
    /* Even smaller text on very small screens */
    #processModelingCollapse .value-content p,
    #digitalTransformationCollapse .value-content p,
    #softwareentwicklungCollapse .value-content p,
    #personalSupportCollapse .value-content p {
        font-size: 0.9rem !important;
    }
    
    /* Reduce padding further on small phones */
    #processModelingCollapse .value-item,
    #digitalTransformationCollapse .value-item,
    #softwareentwicklungCollapse .value-item,
    #personalSupportCollapse .value-item {
        padding: 15px 10px !important;
        margin-bottom: 15px !important;
        border-left-width: 3px !important;
    }
    
    #processModelingCollapse > div,
    #digitalTransformationCollapse > div,
    #softwareentwicklungCollapse > div,
    #personalSupportCollapse > div {
        padding: 10px 5px !important;
    }
}

