.twe-makler-list {
    display: flex;
    gap: 40px;
}

.twe-makler-list .column {
    flex: 1;
}

.twe-makler-city-group {
    display: flex;
    flex-direction: column;
    margin-left: 0;
}

.twe-makler-letter {
    margin-top: 40px;
    font-size: 48px;
    font-family: var( --e-global-typography-secondary-font-family ), Sans-serif;
    font-weight: var( --e-global-typography-secondary-font-weight );
    color: #1e99cf;
    width: 100%; /* Volle Breite */
    grid-column: 1 / -1; /* Spannt über alle Spalten */
    display: block; /* Blockdisplay für volle Breite */
}

.twe-makler-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: color 0.3s;
}

.twe-makler-link:hover,
.twe-makler-link:hover .twe-makler-city {
    color: #1e99cf;
}

.twe-makler-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.twe-makler-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.twe-makler-name {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.twe-makler-contact {
    color: #666;
}

.twe-makler-empty {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.twe-makler-city {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #000;
}

.twe-makler-item {
    margin-bottom: 5px;
}

.twe-makler-agent-detail-heading {
    font-size: 54px;
    font-family: var( --e-global-typography-secondary-font-family ), Sans-serif;
    font-weight: var( --e-global-typography-secondary-font-weight );
    color: #1e99cf;
}

.twe-makler-agent-detail {
    display: flex;
    flex-direction: row;
    background-color: #f4f4f4;
}

.twe-makler-agent-detail .agent-info {
    padding: 24px;
}

.twe-makler-agent-detail.contact-form,
.twe-makler-agent-detail.home{
    flex-direction: column;
}

.twe-makler-agent-detail.home{
    background-color: #FFF;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.twe-makler-agent-detail.contact-form .agent-info,
.twe-makler-agent-detail.home .agent-info{
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 24px;
}

.agent-info{
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.twe-makler-agent-detail.home .agent-info h2{
    margin-top: 0;
}

.agent-info h2{
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.twe-makler-agent-detail .agent-picture {
    object-fit: cover;
    object-position: center;
    height: 100%;
    width: 100%;
    max-height: 240px;
}

.twe-makler-agent-detail.contact-form .agent-picture{
    max-width: none !important;
    height: 340px !important;
}

.agent-phone i,
.agent-address i {
    margin-right: 12px;
}

.agent-info .elementor-button {
    background-color: #1a97cf !important;
}

.elementor-lightbox #kontakt-makler-form {
    padding: 30px;
    max-width: 600px;
    margin: auto;
}

.elementor-lightbox #kontakt-makler-form .elementor-field-required {
    color: red;
}

.elementor-lightbox #kontakt-makler-form .elementor-field-group {
    margin-bottom: 15px;
}

.elementor-lightbox #kontakt-makler-form .elementor-button {
    background-color: #1a97cf;
    color: white;
}

.agent-info .elementor-button-link{
    color: #FFF
}

.twe-makler-search {
    margin-bottom: 2em;
}

.twe-makler-search-form {
    width: 100%;
}

.twe-makler-search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.twe-makler-search-button {
    padding: 8px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.twe-makler-search-button:hover {
    background-color: #005177;
}

.twe-makler-list.loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.twe-makler-list.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}


/* Responsive */

@media only screen and (max-width: 680px) {    
    .twe-makler-list{
        flex-direction: column;
    }

    .twe-makler-agent-detail{
        gap: 0;
    }

    .twe-makler-agent-detail .agent-info{
        padding: 24px;
    }

    .twe-makler-agent-detail .agent-picture{
        height: 100%;
    }
}