/* ===== GLOBALE VARIABLEN ===== */
:root {
    /* Farben */
    --secondary-color: #f8764e;
    --primary-dark: #ee644b;
    --primary-color: rgb(25, 116, 111);
    --accent-color: rgb(9, 113, 121);
    --light-bg: rgb(255, 255, 255);
    --linku: rgb(26, 103, 105);
    --text-color: #333;
    --success-color: #28a745;
    --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);

    
    /* Schatten */
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    --header-shadow: 0 2px 1px rgba(0,0,0,0.4);
    --dropdown-shadow: 0 8px 16px rgba(0,0,0,0.4);
    --menu-shadow: -2px 0 10px rgba(0,0,0,0.5);
    
    /* Abstände */
    --space-xs: 0.3rem;
    --space-sm: 0.5rem;
    --space-md: 0.8rem;
    --space-lg: 0;
    --space-xl: 1.5rem;
    --space-xxl: 2rem;
    
    /* Schriftgrößen */
    --text-xs: 0.9rem;
    --text-sm: 0.95rem;
    --text-md: 1rem;
    --text-lg: 1.1rem;
    --text-xl: 1.2rem;
    --text-xxl: 1.3rem;
    --text-xxxl: 1.4rem;
    --text-jumbo: 1.5rem;
    
    /* Radien */
    --radius-sm: 5px;
    --radius-md: 8px;
    
    /* Transparenzen */
    --hover-opacity: 0.9;
    --linku-transparent-15: rgba(255,255,255,0.15);
    --linku-transparent-10: rgba(255,255,255,0.1);
    --linku-transparent-85: rgba(255, 255, 255, 0.85);
    --linku-transparent-70: rgba(255, 255, 255, 0.7);
    --black-transparent-5: rgba(0,0,0,0.05);
    --black-transparent-10: rgba(0,0,0,0.1);
    --black-transparent-20: rgba(0,0,0,0.2);
    --black-transparent-42: rgba(0, 0, 0, 0.42);
    --black-transparent-50: rgba(0,0,0,0.5);
    
    /* Dimensionen */
    --header-height: 50px;
    --content-max-height: calc(100vh - 180px);
    --mobile-menu-width: 280px;
    --dropdown-min-width: 120px;
    --icon-size-sm: 0.9rem;
    --icon-size-md: 1rem;
    --icon-size-lg: 1.2rem;
    --icon-size-xl: 1.4rem;
    
    /* Zeiten */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* The base state of the link 
a {
  color: #e74c3c; 
  text-decoration: none;
  transition: 0.3s;
}

/* When the user moves their mouse over the link 
a:hover {
  color: rgb(26, 103, 105);
  text-decoration: none; 
}

/* When the link has already been clicked/visited 
a:visited {
  color:   #e74c3c;
  opacity: 0.5;  
  text-decoration: none; 
}

/* The moment the link is being clicked
a:active {
  color: #e74c3c;          
  text-decoration: none; 
}
*/










        /* Modal Stile hinzufügen */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
          width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            align-items: center;
            justify-content: center;
        }
        
        .modal-content {
            background: #f5f5f5;
            padding: 2rem;
            border-radius: 16px;
            height: auto;
          /*  width: 90%; */
         /*   max-width: 500px; */
            position: relative;
            animation: modalFadeIn 0.3s ease-out;
        }
        
        @keyframes modalFadeIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .close-modal {
            position: absolute;
            top: 0rem;
            right: 1rem;
            font-size: 2.5rem;
            cursor: pointer;
            color: var(--text-color);
        }























/* ===== BASIS-STYLES ===== */
* {
    padding: 0;
    box-sizing: border-box;
  /*  align-items: center; */
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 300;

   /* line-height: 1.6; */
    color: var(--text-color);
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
   margin-left: 0; 
   margin-right: 0;
   margin: 0;
    padding: 0;
}


.main-header {
    background-color: #ffffff;
    width: 100%;             /* STRETCHES background to browser edges */
  /*  border-bottom: 1px solid var(--border-color); */
    position: sticky;
    top: 0;
    z-index: 1000;
    
    /* Ensure there are no margins here */
    margin: 0; 
}

.header-inner {
    width: 100%;
    max-width: 1600px;       /* ALIGNS with your main-content */
    margin: 0 auto;          /* CENTERS the content */
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 86px;
}















/* ===== HEADER STYLES ===== 
.main-header {
    background-color: var(--light-bg);
    color: var(--linku);
    padding: var(--space-md) var(--space-lg);
    position: sticky;
    top: 0;
    z-index: 100;
   /* box-shadow: var(--header-shadow); 
}

.header-container {
    max-width: 1600px;
    padding: 0rem 1rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
}*/

.logo {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    font-size: 3.3rem;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 500;
    letter-spacing: -0.15em;
    text-decoration-line: none;
}

.logo-img {
    display: block;
    /* Scales smoothly: 80px on tiny screens → 16vw in the middle → 220px max on wide screens */
 /*   width: clamp(80px, 16vw, 220px); */
    max-width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    margin-top: 6px;
}

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
    .logo-img {
        width: clamp(70px, 18vw, 160px);
        max-height: 52px;
    }
    .header-inner {
        height: 72px;
        padding: 0 1.25rem;
    }
}

/* ── Mobile (≤ 600px) ── */
@media (max-width: 600px) {
    .logo-img {
        width: clamp(60px, 22vw, 120px);
        max-height: 44px;
        margin-top: 4px;
    }
    .header-inner {
        height: 60px;
        padding: 0 0.75rem;
    }
}

/* ── Small mobile (≤ 380px) ── */
@media (max-width: 380px) {
    .logo-img {
        width: clamp(52px, 24vw, 100px);
        max-height: 38px;
        margin-top: 2px;
    }
    .header-inner {
        height: 54px;
        padding: 0 0.5rem;
    }
}

.logo:hover {
    opacity: var(--hover-opacity);
}

.logo i {
    font-size: var(--text-xxxl);
}



h5.created-task-title-available {
    font-size: clamp(1.8rem, 5vw, 2.4rem) !important;
    color: var(--secondary);
    margin-top: 0;
    margin-bottom: 1rem;
}

/* ===== NAVIGATION ===== */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}
.notification-nav {
  display: block;
  margin-left: auto;
}
.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 1.3rem;
    white-space: nowrap;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--space-md);
        margin-right: 12px;
}

.nav-link:hover {
    background: #74868517;
  /*  transform: translateY(-1px); */
}

.nav-link i {
    font-size: var(--text-md);
    position:relative;
    top: -2px;
}



.nav-link-become {
    color: var(--text-color);
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 1.3rem;
    white-space: nowrap;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-right: 12px;
    background-color: #74868517;
}

.nav-link-become:hover {
    background: #fff;
    font-size: 1.3rem;
  /*  transform: translateY(-1px); */
}

.nav-link-become  {
    font-size: 1.3rem;
    position:relative;
    top: -2px;
}
/* ===== LANGUAGE SWITCHER ===== */
.language-switcher {
    display: flex;
    gap: var(--space-sm);
    margin-left: var(--space-sm);
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-dropdown-btn {
  background: white;
  color: var(--text-color);
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-lg);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all var(--transition-normal);
}

.language-dropdown-btn:hover {
    background: #74868517;
}

.language-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: rgb(255, 255, 255);
    min-width: var(--dropdown-min-width);
    box-shadow: var(--dropdown-shadow);
    border-radius: var(--radius-sm);
    z-index: 1;
    overflow: hidden;
}

.language-dropdown-content form {
    display: flex;
    flex-direction: column;
}

.language-dropdown-content button {
    color: var(--text-color);
    font-size: 1rem;
    padding: var(--space-md) var(--space-lg);
    padding-left: var(--space-md);
    text-decoration: none;
    display: block;
    text-align: left;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.language-dropdown-content button:hover {
    background-color: #74868517;
}

.language-dropdown.active .language-dropdown-content {
    display: block;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
 /*   padding: var(--space-xxl) var(--space-lg); */
    margin: 0 auto;
    width: 100%;
    max-width: 1600px;
}

.content-container {
    max-height: var(--content-max-height);
    overflow-y: auto;
    padding: var(--space-lg);
}

/* ===== FOOTER ===== */
.main-footer {
    background-color: #cfcfcf96;
    color: var(--linku);
    padding: var(--space-xxl) var(--space-lg);
    margin-top: auto;
    margin-top: 8rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xxl);
}

.footer-section {
    padding: 0;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
}

.footer-brand-logo {
    text-decoration: none;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    line-height: 1;
    font-weight: normal;
}

.footer-brand-job {
    color: #888;
}

.footer-brand-baa {
    color: #888;
}

.footer-section h2 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-lg);
    color: #888;
    font-weight: bold;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: var(--text-sm);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-links a:hover {
    color: #ffffff;
   /* text-decoration: underline;
    transform: translateX(3px); */
}


.footer-links i {
    font-size: var(--icon-size-sm);
}

.main-footer .footer-support-copy {
    color: #888 !important;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 var(--space-lg);
}

.footer-donation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: #000 !important;
    background: #888;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-weight: 600;
    border: 1px solid #888;
    cursor: pointer;
}

.footer-donation-btn span,
.footer-donation-btn i {
    color: #000 !important;
}

.footer-donation-btn:hover {
    color: #000 !important;
    background: #ffffff;
    border-color: #ffffff;
}

.copyright {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: var(--space-xl);
    margin-top: var(--space-lg);
    border-top: 1px solid var(--linku-transparent-10);
    font-size: var(--text-xs);
    color: #888 !important;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--linku);
    font-size: var(--text-jumbo);
    cursor: pointer;
    padding: var(--space-xs);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: calc(-1 * var(--mobile-menu-width));
    width: var(--mobile-menu-width);
    height: 100vh;
    background: rgba(255, 255, 255); /* leicht transparentes Weiß */
    box-shadow: var(--menu-shadow);
    transition: right var(--transition-normal);
    z-index: 101;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    overflow-y: auto;
}


.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--linku-transparent-10);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--linku);
    font-size: var(--text-jumbo);
    cursor: pointer;
}

.mobile-nav-link {
    color: var(--linku);
    text-decoration: none;
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    font-size: var(--text-md);
}

.mobile-nav-link:hover {
    background: var(--linku-transparent-10);
}

.mobile-nav-link i {
    font-size: var(--icon-size-lg);
    width: 24px;
    text-align: center;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black-transparent-50);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}




/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .main-header {
        padding: var(--space-sm) var(--space-lg);
    }
    
    .logo {
        font-size: var(--text-xl);
    }

    .logo-img {
        width: clamp(100px, 20vw, 170px);
        max-height: 48px;
    }
    
    .logo i {
        font-size: var(--text-xxl);
    }
    
    .nav-link {
        padding: var(--space-sm) var(--space-md);
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: var(--space-sm) var(--space-lg);
    }
    
    .main-nav .nav-link span {
        display: none;
    }
    
    .nav-link {
        padding: var(--space-sm);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav:not(.mobile-menu-nav) {
        display: none;
    }
    
    .language-switcher {
        display: none;
    }
    
    .content-container {
        max-height: none;
        overflow-y: visible;
    }
    
    .mobile-menu .language-switcher {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
        margin-top: var(--space-lg);
        padding-top: var(--space-lg);
        border-top: 1px solid var(--linku-transparent-10);
    }
}

@media (max-width: 576px) {
    .main-header {
        padding: var(--space-xs) var(--space-md);
        height: 60px;
    }
    
    .header-container {
        padding: 0;
    }
    
    .logo {
        font-size: 40px;
        flex-grow: 1;
    }

    .logo-img {
        width: clamp(90px, 36vw, 140px);
        max-height: 42px;
    }
    
    .logo i {
        font-size: var(--text-xl);
    }
    
    .main-content {
   padding: var(--space-xl) var(--space-md);
    }
    
    .main-footer {
        padding: var(--space-xl) var(--space-md);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-section {
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }
    
    .footer-links {
        align-items: center;
    }

    .footer-support-copy {
        text-align: center;
    }
}

@media (max-width: 400px) {
    .logo {
        font-size: 40px;
        width: auto;
    }

    .logo-img {
        width: clamp(78px, 34vw, 115px);
    }
    
    .logo i {
        font-size: var(--text-lg);
    }
    
    .mobile-menu {
        width: 260px;
    }

    .header-inner {
        height: 45px;
        padding: 0 0.5rem;
    }
}


