  /* Golden Ratio Constants */
:root {

     /* Farben */
    --secondary-color: #f8764e;
    --primary-dark: #ee644b;
    --primary-color: rgb(26, 103, 105);
    --accent-color: rgb(26, 103, 105);
    --light-bg: rgb(255, 255, 255);
    --linku: rgb(26, 103, 105);
    --text-color: #333;
    --success-color: #rgb(26, 103, 105);
    --danger-color: #dc3545;
    --linku-one: rgb(255, 255, 255);
    --linku-two: rgb(255, 236, 223);
    --linku-three: rgb(240, 254, 255);
    --linku-four: rgb(197, 255, 252);

    --golden-ratio: 1.618;
    --golden-ratio-small: 0.618;
    --golden-ratio-percent: 61.8%;
    
    /* Golden ratio based spacing */
    --space-xs: calc(0.5rem * var(--golden-ratio-small));
    --space-sm: calc(0.75rem * var(--golden-ratio-small));
    --space-md: 1rem;
    --space-lg: calc(1rem * var(--golden-ratio));
    --space-xl: calc(1.5rem * var(--golden-ratio));
    --space-xxl: calc(2rem * var(--golden-ratio));
    
    /* Golden ratio based typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: calc(1rem * var(--golden-ratio));
    --font-size-xl: calc(1.25rem * var(--golden-ratio));
    --font-size-xxl: calc(1.5rem * var(--golden-ratio));
    
    /* Golden ratio border radius */
    --radius-xs: calc(2px * var(--golden-ratio-small));
    --radius-sm: 5px;
    --radius-md: 4px;
    --radius-lg: calc(4px * var(--golden-ratio));
    --radius-xl: calc(8px * var(--golden-ratio));
    
    /* Responsive breakpoints using golden ratio */
    --breakpoint-sm: 640px;
    --breakpoint-md: calc(768px * var(--golden-ratio-small));
    --breakpoint-lg: calc(1024px * var(--golden-ratio-small));
    --breakpoint-xl: calc(1280px * var(--golden-ratio-small));
}





        /* Task Grid Styles */
    .task-grid {
        display: grid;
        gap: 20px;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        margin-left: 2rem;
        padding-right: 2rem;
    }

       .task-grid-edit-list {
        display: grid;
        gap: 20px;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        margin-left: 0px;
    }

    .task-card {
        background: white;
        border-radius: 10px;
      /*  box-shadow: 0 4px 12px rgba(0,0,0,0.08); */
        overflow: hidden;
      /*  transition: transform 0.3s ease, box-shadow 0.3s ease; */
        display: flex;
        flex-direction: column;
        border: 1px solid #333;
        border-radius: var(--radius-md) !important;
    box-shadow: 0 calc(2px * var(--golden-ratio-small)) calc(10px * var(--golden-ratio-small)) rgba(0, 0, 0, 0.20) !important;

    }


     .task-card-edit-list {
        background: white;
        border-radius: 10px;
      /*  box-shadow: 0 4px 12px rgba(0,0,0,0.08); */
        overflow: hidden;
      /*  transition: transform 0.3s ease, box-shadow 0.3s ease; */
        display: flex;
        flex-direction: column;
        /* border: 1px solid #333; */
        border-radius: var(--radius-md) !important;
    box-shadow: 0 calc(2px * var(--golden-ratio-small)) calc(10px * var(--golden-ratio-small)) rgba(0, 0, 0, 0.20) !important;
margin
    }

    .task-card:hover {
     /*   transform: translateY(-5px); */
      /*  box-shadow: 0 8px 16px rgba(0,0,0,0.12); */
    }

    .task-header {
     /*  background: var(--primary-color); */
     /*   color: white; */
        padding: 12px;
        padding-bottom: 0px;
    }

    .task-user-info {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 15px;
    }

    .task-user-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid white;
    }

    .task-user-details {
        display: flex;
        flex-direction: column;
    }

    .task-username {
       font-size: clamp(1rem, 1.5vw, 1.2rem);
    }

    .task-user-rating {
        display: flex;
        align-items: center;
        gap: 3px;
        font-size: 1rem;
     /* color: rgba(255,255,255,0.8); */
    }

    .task-rating-stars {
        color: #df6c30;
    }

    .task-title {
    /*   font-size: 1.1rem; */
    /*  font-weight: 600; */
        margin: 0;
    /* color: white; */
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .text-default-left {
    font-size: 1rem;
    line-height: 1.5rem;
    text-align: left;
    margin-top: 0px; 
    margin-bottom: var(--space-md);
}

    /* font-weight: 600;
        font-size: 0.95rem; */

    .task-status-badge {
        padding: 4px 10px;
        border-radius: 5px;
        font-size: 0.7rem;
        text-transform: capitalize;
        background: var(--text-color);
        color: #fff;
    }

    .task-content {
        padding: 16px;
        padding-top: 0px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .task-category {
        display: none;
        font-size: 0.8rem;
        color: var(--primary-color);
        font-weight: 600;
        margin-bottom: 12px;
    }

    .task-meta {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 12px;
    }

    .meta-item {
        display: flex;
        align-items: center;
        font-size: 0.85rem;
    }

    .meta-icon {
        margin-right: 8px;
        font-size: 1rem;
    }

    .task-description {
        font-size: 0.82rem;
        color: #4a5568;
        line-height: 1.4;
        margin: 0.75rem 0;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-clamp: 3;
        -webkit-line-clamp: 3;
        max-height: calc(1.4em * 3);
    }

    .task-address {
        font-size: 0.85rem;
        padding: 8px;
        background: rgba(223, 89, 0, 0.05);
        border-radius: 6px;
        margin: 8px 0;
        border-left: 3px solid var(--primary-color);
    }





    /* Task header content positioning */
.task-header-content {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Position the status badge at top right */
.task-header-content .task-status-badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}

/* Adjust the title to make room for the badge */
.task-header-content .small-heading-hero {
    padding-right: 80px; /* Make room for the badge */
    display: block;
    width: 100%;
}

/* Keep existing status badge styles but ensure it's visible */
.task-status-badge {
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    text-transform: capitalize;
   /* background: rgba(255,255,255,0.2); */
    display: inline-block;
}

/* Ensure the badge doesn't get hidden behind other elements */
.task-header {
    position: relative;
    overflow: visible; /* Allow the badge to extend beyond if needed */
    padding: 12px 16px;
    margin-bottom: 0px;
}






    .payment-summary {
    /*    background: rgba(0,0,0,0.03); */
        border-radius: 6px;
        padding-top: 3px;
        margin-top: 2px;
    }

    .payment-row {
        display: flex;
        justify-content: space-between;
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .payment-total {
        display: none;
        font-weight: 600;
        border-top: 1px solid #eee;
        padding-top: 8px;
        margin-top: 8px;
    }

    .task-actions {
        padding: var(--space-md) 16px 16px;
        padding-bottom: var(--space-lg);
    }

    .task-btn {
        display: block;
        padding: 8px 16px;
        border: none;
        border-radius: 4px;
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
        text-align: center;
        text-decoration: none;
        width: 100%;
        transition: background 0.2s ease;
    }

    .btn-primary {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #174540 0%, #2c7b73 100%);
    color: white;
    border: none;
    padding: 0.85rem 1.75rem;
    z-index: 1;
    cursor: pointer;
    transition: color 0.4s ease;
    font-size: clamp(1rem, 2vw, 1.2rem);
    border-radius: 5px;
    }

    .btn-primary:hover {
        background: var(--secondary-color);
    }

    .btn-disabled {
        background: #f0f0f0;
        color: #999;
        cursor: not-allowed;
    }

    .no-tasks {
        text-align: center;
        padding: 40px 20px;
        grid-column: 1 / -1;
    }

    .empty-message {
        font-size: 1.1rem;
        color: #666;
        margin-bottom: 20px;
    }

    .btn-create {
        display: inline-block;
        padding: 12px 24px;
        background: linear-gradient(90deg, #174540 0%, #2c7b73 100%);
        color: white;
        text-decoration: none;
        border-radius: 6px;
        transition: background 0.3s ease;
        font-weight: 500;
    }

    .btn-create:hover {
        background: linear-gradient(90deg, #dd5319 0%, #e57227 100%);
    }

    .load-more-container {
        text-align: center;
        margin-top: 20px;
        grid-column: 1 / -1;
    }

    /* Status colors */
    .status-available { background: #df6c30; }
    .status-pending_payment { background: #9c27b0; }
    .status-paid { background: #4caf50; }
    .status-in_progress { background: #ff9800; }
    .status-completed { background: #f44336; }
    .status-fully_paid { background: #2e7d32; color: #fff; }
    .status-rated { background: #673ab7; }
    .status-canceled { background: #6c757d; }


    /* Filter form styles */
    .filter-form {
        margin: 20px 0;
    }

    .filter-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .filter-item {
        margin-bottom: 15px;
    }

    .form-input, .form-select {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 0.9rem;
    }

    .filter-actions {
        display: flex;
        gap: 10px;
        margin-top: 10px;
        grid-column: 1 / -1;
    }

    .btn-secondary {
        background: #f0f0f0;
        color: #333;
    }

    .btn-secondary:hover {
        background: #e0e0e0;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .task-grid {
            grid-template-columns: 1fr;
        }
        
        .task-meta {
            grid-template-columns: 1fr;
        }
        
        .filter-grid {
            grid-template-columns: 1fr;
        }
    }

/* Force-styled membership plans (applies even if old inline homepage styles are served) */
.membership-plans-section {
    margin-top: 8rem !important;
    margin-bottom: 8rem !important;
    text-align: center !important;
    padding: 0 2rem !important;
    box-sizing: border-box !important;
}

.membership-plans-section .section-heads {
    margin-bottom: 1rem !important;
    color: #1f2d3d !important;
}

.membership-plans-section::after {
    content: "" !important;
    display: block !important;
    width: 60px !important;
    height: 3px !important;
    background: linear-gradient(to right, transparent, #1a6769, transparent) !important;
    margin: 1.5rem auto 3rem !important;
}

.membership-plans-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: calc(18px * var(--golden-ratio)) !important;
    perspective: 1000px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.membership-plan-card {
    background: #ffffff !important;
    border: 1px solid #333 !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 calc(2px * var(--golden-ratio-small)) calc(10px * var(--golden-ratio-small)) rgba(0, 0, 0, 0.20) !important;
    padding: calc(24px * var(--golden-ratio)) !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1) !important;
}

.membership-plan-card::before {
    display: none !important;
}

.membership-plan-card:hover {
    border-color: #333 !important;
    box-shadow: 0 calc(2px * var(--golden-ratio-small)) calc(10px * var(--golden-ratio-small)) rgba(0, 0, 0, 0.20) !important;
    transform: none !important;
}

.membership-plan-card.featured {
    border-color: #333 !important;
    box-shadow: 0 calc(2px * var(--golden-ratio-small)) calc(12px * var(--golden-ratio-small)) rgba(26, 103, 105, 0.38) !important;
    transform: translateY(0) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f5fafa 100%) !important;
}

.membership-plan-card.featured:hover {
    transform: none !important;
    box-shadow: 0 calc(2px * var(--golden-ratio-small)) calc(12px * var(--golden-ratio-small)) rgba(26, 103, 105, 0.42) !important;
}

.membership-plan-card.featured .membership-plan-cta {
    width: auto !important;
    margin-right: 0 !important;
    align-self: flex-start !important;
}

.membership-plan-card.featured::before {
    opacity: 1 !important;
}

.membership-plan-card.featured::after {
    content: "Most Popular";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a6769;
    color: #ffffff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 12px rgba(26, 103, 105, 0.25);
}

.membership-plan-kicker {
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    color: #1a6769 !important;
    margin-bottom: 12px !important;
    font-weight: 800 !important;
}

.membership-plan-card h3 {
    font-size: clamp(1.4rem, 2.4vw, 1.8rem) !important;
    margin: 0 0 12px 0 !important;
    color: #1f2d3d !important;
    font-weight: 700 !important;
}

.membership-plan-price {
    margin: 0 0 12px 0 !important;
    color: #1a6769 !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    letter-spacing: -0.02em !important;
}

.membership-plan-summary {
    margin: 0 0 20px 0 !important;
    color: #5c6f74 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

.membership-plan-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    gap: 12px !important;
    text-align: left !important;
}

.membership-plan-features li {
    position: relative !important;
    padding-left: 24px !important;
    line-height: 1.6 !important;
    color: #3a4a50 !important;
    font-size: 0.95rem !important;
}

.membership-plan-features li::before {
    content: "✓" !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #1a6769 !important;
    color: #ffffff !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.2em !important;
    font-size: 0.75rem !important;
    font-weight: 900 !important;
}

/* Fallback CTA buttons for stale homepage HTML that lacks real anchor buttons */
.membership-plan-card:not(:has(.membership-plan-cta)) .membership-plan-features::after {
    content: "Get Started";
    display: inline-block;
    margin-top: 18px;
    padding: 12px 28px;
    border-radius: 8px;
    background: #1a6769;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    text-align: center;
    box-shadow: 0 8px 16px rgba(26, 103, 105, 0.2);
}

.membership-plans-grid > .membership-plan-card.featured:not(:has(.membership-plan-cta)) .membership-plan-features::after {
    content: "Choose Plan";
    display: inline-block;
    width: auto;
    margin-right: 0;
}

.membership-plans-grid > .membership-plan-card:not(.featured):nth-of-type(3):not(:has(.membership-plan-cta)) .membership-plan-features::after {
    content: "Explore More";
}

@media (max-width: 980px) {
    .membership-plans-grid {
        grid-template-columns: 1fr !important;
    }

    .membership-plan-card.featured {
        transform: scale(1) !important;
    }

    .membership-plan-card.featured:hover {
        transform: translateY(-8px) !important;
    }
}