.tagesschrift-regular {
  font-family: "Tagesschrift", system-ui;
  font-weight: 400;
  font-style: normal;
}

/* --- Styling for the logo within the Custom Content gadget --- */
.header-logo {
    width: 120px; /* Adjust size */
    height: auto;
    margin-right: 20px; /* Space between logo and text */
    vertical-align: middle; /* Align logo vertically with text */
}

/* --- Organization Info Container Adjustment --- */
.organization-info { 
    display: flex;
    font-family:  "Tagesschrift", system-ui;
    align-items: center; /* Align logo and text vertically */
    /* Remove flex-direction: column; for now to place logo and text side-by-side */
    justify-content: flex-start; /* Align items to the left */
    height: 100%;
    padding-left: 20px; /* Add some left padding */
}

.organization-name {
    font-size: 1.5em;
    color: #000000;
    font-weight: bold;
    margin-bottom: 0; /* Remove bottom margin as it's now in a row */
    margin-right: 20px; /* Add space between name and contact info */
}

.contact-details {
    display: flex;
    gap: 10px;
    font-size: 0.9em;
    color: #000;
}


.contact-details .email a {
    color: #000;
    text-decoration: none;
    
}

.contact-details .email a:hover {
    text-decoration: underline;
}

/* --- Overall Header Background --- */
.zoneHeader1 {
    background-color: #ff9999;
    padding: 15px 0; /* Adjust padding */
    display: flex; /* Use flex to align items within the header zone */
    align-items: center; /* Vertically align content in the header */
    justify-content: space-between; /* Space out left and right sections */
    padding: 0 20px; /* Add left and right padding to the header zone */
}

/* --- Left side container for logo and organization info --- */
.header-left {
    display: flex;
    align-items: center;
}

/* Hide the default header content holder table */
#idHeaderContentHolder > div > table {
    display: none;
}

/* Ensure the Custom Content gadget takes up appropriate space */
#id_UNNAMED_CUSTOM_GADGET_ID { /* Replace with the actual ID of your gadget */
    width: auto; /* Adjust as needed */
}

/* --- Responsive Adjustments --- */

@media (max-width: 768px) {
    .organization-info {
        flex-direction: column; /* Stack logo and text vertically */
        align-items: center; /* Center items */
        text-align: center; /* Center text within items */
        padding-left: 0; /* Remove left padding */
    }

    .header-logo {
        margin-right: 0; /* Remove right margin from logo */
        margin-bottom: 10px; /* Add bottom margin below logo */
    }

    .organization-name {
        margin-right: 0; /* Remove right margin */
        margin-bottom: 5px; /* Add some bottom margin */
        font-size: 1em; /* Slightly reduce font size */
    }

    .contact-details {
        flex-direction: column; /* Stack email and address vertically */
        align-items: center; /* Center them */
        gap: 2px; /* Reduce gap */
        padding: 0;
    }

    #id_fuXoXDE {
        padding-right: 15px; /* Adjust right padding */
    }

    #id_Search_TextBox {
        width: 80px; /* Even narrower initial width */
    }

    #idHeaderContentHolder > div {
        padding: 10px; /* Adjust overall header padding */
        flex-direction: column; /* Stack logo/info and search vertically */
        align-items: center; /* Center items */
    }

    .header-left {
        flex-direction: column; /* Stack logo and org info vertically */
        align-items: center; /* Center them */
        margin-bottom: 10px; /* Add space below logo/info block */
    }
}

/* For even smaller screens (typical for phones) */
@media (max-width: 480px) {
    .organization-name {
        font-size: 0.9em; /* Further reduce font size */
    }

    .contact-details {
        font-size: 0.8em; /* Further reduce font size */
    }

    #id_Search_TextBox {
        width: 60px; /* Even narrower */
    }
}

