/*** DETAIL ANSICHT ***/

.acf-map {
    width: 100%;
    height: 400px;
}
.acf-map-all-locations {
    width: 100%;
    height: 400px;
}
.map-popup{
	font-size: 16px !important;
	line-height: 1.5 !important;
}
.marker {
    display: none;
}
.immobilie-detail-title {
	padding-bottom: 30px;
}
.immobilie-detail-title .title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 10px;
}
.immobilie-detail-title h2 {
	font-size: 40px;
    margin: 0;
	padding: 0;
}
.immobilie-detail-title .adresse {
	display: none;
}

.badge {    
	background: #5f696e;
    color: #FFF;
    padding: 6px 20px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.9;
    white-space: nowrap;
}
/*.immobilie-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    position: relative; 
	overflow: visible;
}*/

.immobilie-sidebar {
    background: #f5f5f5;
    padding: 30px;
}
.immobilie-sidebar h3 {
	font-size: 26px;
	padding-bottom: 20px;
}
.keyfacts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.keyfacts li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid #fff;
    padding-bottom: 10px;
}
.btn-anfrage {
	margin-top: 30px;
    display: block;
    background: #ffde10;
    color: #5f696e;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0px;
	padding: 10px 10px;
	transition: all 0.5s ease;
}

.btn-anfrage:hover {
    background: #5f696e;
	color: #ffde10;
}
.galerie-grid {
    margin-top: 40px;
}
.galerie-grid {
    gap: 30px;
}
.galerie-grid h4 {
    font-size: 18px !important;
    line-height: 1.3em !important;
    font-weight: 400 !important;
    margin: 0;
	padding: 0 !important;
}
.galerie-item .item-content {
    padding: 10px 20px !important;
}
.video-thumb {
    background: #5f696e;
    position: relative;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 60px;
    height: 60px;
    background: #ffde10;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button::before {
    content: "▶";
    color: #5f696e;
    font-size: 20px;
}


.dokumente-headline,
.einheiten-headline{
	padding-top: 75px;
}
.dokumente-headline h3,
.einheiten-headline h3 {
	font-size: 33px;
	padding-bottom: 30px;
}
.einheit-dokumente {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}
.dokumente-buttons {
	padding-top: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.dokumente-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 50px;
}
.dokument-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #fff;
	box-shadow: 0 0 10px rgba(95, 105, 110, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
}
.dokument-item:hover {
    background: #ffde10;
}
.dokument-icon {
    width: 50px;
    height: 50px;
    background: #5f696e;
    position: relative;
	overflow: hidden;
    transition: all 0.3s ease;
}
.dokument-item:hover .dokument-icon {
	background-color: #5f696e;
}
.dokument-icon::before {
    content: "\e092"; 
    font-family: 'ETmodules';
    color: #fff;
    font-size: 24px;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.dokument-content h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
	padding: 0 !important;
}
.dokument-meta {
    font-size: 12px;
    color: #5f696e;
}


/* =========================
   EINHEITEN TABELLE
========================= */

.einheiten-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 0 10px rgba(95,105,110,0.1);
}

/* HEADER */
.einheiten-table thead {
    background: #5f696e;
}

.einheiten-table th {
    color: #fff;
    text-align: left;
    padding: 15px 20px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ROWS */
.einheiten-table td {
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

/* HOVER */
.einheit-row {
    transition: all 0.3s ease;
    cursor: pointer;
}

.einheit-row:not(:has(.toggle)) {
    cursor: default;
}

.einheit-row:hover {
    background: #f5f5f5;
}

/* PREIS hervorheben */
.einheiten-table td:nth-child(4) {
    font-weight: 600;
}

/* STATUS */
.einheiten-table td:nth-child(5) {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    color: #5f696e;
}

/* TOGGLE BUTTON */
.einheiten-table .toggle {
    background: #ffde10;
    color: #5f696e;
    border: none;
    width: 35px;
    height: 35px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.einheiten-table .toggle:hover {
    background: #5f696e;
    color: #ffde10;
}
.einheiten-table .einheit-detail {
    display: none;
}
/* DETAIL ROW */
.einheit-detail td {
    padding: 30px;
    background: #f9f9f9;
}
.einheiten-table td:first-child {
    font-weight: 600;
}

.einheiten-table th:nth-child(1),
.einheiten-table td:nth-child(1) {
    width: 22%;
}

.einheiten-table th:nth-child(2),
.einheiten-table td:nth-child(2) {
    width: 27%;
}

.einheiten-table th:nth-child(3),
.einheiten-table td:nth-child(3) {
    width: 10%;
}

.einheiten-table th:nth-child(4),
.einheiten-table td:nth-child(4) {
    width: 10%;
}

.einheiten-table th:nth-child(5),
.einheiten-table td:nth-child(5) {
    width: 15%;
}

.einheiten-table th:nth-child(6),
.einheiten-table td:nth-child(6) {
    width: 15%;
}

/* Größe + Preis + Status zentrieren */
.einheiten-table td:nth-child(3),
.einheiten-table td:nth-child(4),
.einheiten-table td:nth-child(5),
.einheiten-table td:nth-child(6),
.einheiten-table th:nth-child(3),
.einheiten-table th:nth-child(4),
.einheiten-table th:nth-child(5),
.einheiten-table th:nth-child(6) {
    text-align: center;
}

/* Preis NICHT fett (override) */
.einheiten-table td:nth-child(4) {
    font-weight: 400;
}

/* STATUS BADGE STYLE */
.einheiten-table td:nth-child(5) {
    font-weight: 600;
    text-transform: uppercase;
}

/* STATUS BADGE */
.einheiten-table td:nth-child(5) span {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0px;
}

/* VERFÜGBAR */
.status-verfuegbar {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

/* RESERVIERT */
.status-reserviert {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

/* VERKAUFT / VERMIETET */
.status-verkauft,
.status-vermietet {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* DETAIL CONTENT */
.detail-beschreibung {
    margin-bottom: 20px;
}

/* =========================
   DOWNLOAD BUTTONS
========================= */

.detail-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.download-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #ffde10;
    color: #5f696e;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #5f696e;
    color: #ffde10;
}

/* =========================
   MEDIA GRID (5 SPALTEN)
========================= */

.detail-media-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.media-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.media-item:hover img {
    transform: scale(1.08);
}

.immobilie-bildkarten .et_pb_section,
.immobilie-bildkarten .et_pb_section .et_pb_row {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}





/*** GRID VIEW ***/

.immobilien-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
	margin-top: 50px;
}
.immobilien-grid h3 {
	font-size: 22px !important;
    line-height: 1.2em !important;
	font-weight: 600 !important;
}
.immobilien-grid .item-content-outer {
    position: relative;
    margin-top: -30px;
    margin-left: 30px;
    margin-right: 30px;
    display: block;
    z-index: 99;
    padding: 0 !important;
}
.immobilien-grid .item-content {
    padding: 15px 30px !important;
    display: inline-block;
    width: auto;
    background-color: #FFF;
    box-shadow: 0 0 10px rgba(95, 105, 110, 0.1);
}
.immobilien-grid p {
	line-height: 1.5;
}
.immobilien-grid .einheiten-counter {
	margin-top: 10px;
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0px;	
}

/* verfügbar (Standard) */
.immobilien-grid .einheiten-counter {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}
/* teilweise verfügbar (optional eigene Stufe) */
.immobilien-grid .einheiten-counter.partial {
    /*background: rgba(243, 156, 18, 0.15);
    color: #f39c12;*/
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}
/* alles verkauft */
.immobilien-grid .einheiten-counter.sold {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}
.immobilien-grid-item .image{
    width: 100%;
    aspect-ratio: 1 / 1; 
    overflow: hidden;
	position: relative;
}
.immobilien-grid-item .badge,
.highlight-slide .badge {
    position: absolute;
    top: 25px;
    right: 0px;
    background: #5f696e;
    color: #FFF;
    padding: 6px 20px;
    font-size: 14px;
	text-transform: uppercase;
	font-weight: 600;
	opacity: 0.9;
}
.immobilien-grid-item .image img {
	position: absolute;
	left: 0;
	top: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
	transition: all 1s ease;
}

.immobilien-grid-item:hover .image img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}
.immobilien-grid-item:hover .item-content{
	background-color: #ffde10;
	transition: all 0.5s ease;
}


.immobilien-filter {
    margin-bottom: 30px;
}

.immobilien-filter button {
    margin-right: 5px;
	margin-bottom: 10px;
    padding: 10px 20px;
    cursor: pointer;
	border-radius:0;
	border: none;
	background-color: #f5f5f5;
	color:#5f696e;
	font-size: 16px;
	transition: all 0.5s ease;
}
.immobilien-filter button.active{
	color: #5f696e;
	background-color: #ffde10;
}
.no-results {
    text-align: left;
    padding: 40px 0;
    font-size: 18px;
}


/* Highlight Slider */


.highlight-slider .slide {
    display: none;
    align-items: center;
    gap: 40px;
}
.highlight-slide .text {
	width:100%;
}
.highlight-slide .text  h5 {
	color: #5f696e;
	font-weight: 500;
	letter-spacing: 1px;
	font-size: 14px;
	margin: 0;
	padding: 0 0 10px 0;
}
.highlight-slide .text  h2 {
	font-size: 33px !important;
	line-height: 1.3 !important;
	padding-bottom: 0px !important;
	font-weight: bold !important;
}
.highlight-slide .text  h2:after{
	display: block;
	content: "";
	width: 50px;
	height: 2px;
	background-color: #ffde10;
	margin-top: 20px;
	margin-bottom: 20px;
}
.highlight-slide a.btn {
	margin-top: 30px;
    font-weight: 600 !important;
    text-transform: uppercase !important;
	padding: 10px 30px;
    color: #5f696e;
    font-size: 15px;
    background-color: #ffde10;
    display: inline-block;    
	transition: all 300ms ease 0ms;
    line-height: 1.7em !important;
}
.highlight-slide a.btn:hover{
    color: #ffde10 !important;
    background-color: #5f696e;
    transform: scaleX(1.05) scaleY(1.05) !important;
}

.highlight-slider .text {
    flex: 1;
}

.highlight-slider .image {
    flex: 1;
}

.highlight-slider img {
    width: 100%;
}

/* Detailseite */
.immobilie-detail img {
    max-width: 100%;
}

.galerie {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

/* SLIDER LAYOUT */
.highlight-slide {
    display: flex;
    align-items: center;
    gap: 50px;
}
.highlight-swiper {
	position: relative;
	padding-bottom: 50px; 
}
.highlight-swiper .swiper-wrapper {
	height: 100%;
	align-items: center;
}
.highlight-swiper .swiper-slide {
	height: 100%;
	display: flex; 
}
.highlight-slide{
	width:100%;
	position: relative;
}
/* TEXT */
.highlight-slide .text {
    flex: 1;
}

.highlight-slide .kategorie {
    color: #ffde10;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* IMAGE WRAPPER */
.highlight-slide .image {
    flex: 1;
    position: relative;
    overflow: hidden;
	width: 100% !important;
	/*padding-top: 66.67% !important;*/
    aspect-ratio: 3 / 2;
}

/* IMAGE FIX */
.highlight-slide .image img {
	position: absolute;
	height: 100%;
    width: 100%;
	top: 0;
	left: 0;
    object-fit: cover;
}


/* DOTS */
.swiper-pagination {
    position: absolute !important;
    bottom: 0px !important;
	line-height: 0 !important;
    /*left: 0px !important;
    text-align: left !important;*/
}

.swiper-pagination-bullet {
	margin: 0 5px 0 0 !important;
	border-radius: 0 !important;
	height: 6px !important;
	width: 25px !important;
    background: #5f696e !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: #ffde10 !important;
}

.highlight-swiper .swiper-button-next::after,
.highlight-swiper .swiper-button-prev::after {
    content: none !important;
}
/* BUTTON BASE */
.highlight-swiper .swiper-button-next,
.highlight-swiper .swiper-button-prev {
    background: #ffde10 !important;
    width: 50px !important;
    height: 50px !important;
	padding: 0 !important;
	margin: 0 !important;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.3s ease;
}

.highlight-swiper .swiper-button-next::before,
.highlight-swiper .swiper-button-prev::before {
    content: "$"; /* dein Divi Icon */
    font-family: 'ETmodules' !important;
    font-size: 30px !important;
    color: #5f696e !important;
    transition: all 0.3s ease;
}

.highlight-swiper .swiper-button-prev::before {
    transform: rotate(180deg) !important;
}




.highlight-swiper .swiper-button-next {
	right: 0 !important;
}
.highlight-swiper .swiper-button-prev {
	left: 0 !important;
}
.highlight-swiper .highlight-slide{
	padding: 50px 100px 50px 100px;
}



/* Tablet */
@media (max-width: 980px) {
    .immobilien-grid {
        grid-template-columns: repeat(2, 1fr);
    	gap: 30px;
    }
	.highlight-slide {
        flex-direction: column;  
        gap: 30px;            
    }
    .highlight-slide .image {
        order: -1;
    }
	.highlight-swiper .swiper-wrapper {
		align-items: flex-start;
	}
	
    .immobilie-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: relative;
        top: 0;
    }
	.immobilie-detail-title h2 {
		font-size: 35px;
	}	
	.dokumente-headline h3,
	.einheiten-headline h3 {
		font-size: 28px;
	}
	.immobilie-detail-title .title-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.immobilie-detail-title .badge {
		align-self: flex-start;
	}
	.badge {
		padding: 6px 20px;
		font-size: 13px;
	}
	
}

/* Mobile */
@media (max-width: 767px) {
    .immobilien-grid {
        grid-template-columns: 1fr;
    } 	
	.highlight-swiper .highlight-slide {
        padding: 50px 0;
    }
	.highlight-swiper {
        position: relative;
        padding-bottom: 50px; 
    }
    .highlight-swiper .swiper-button-next,
    .highlight-swiper .swiper-button-prev {
        top: auto !important;
        bottom: 0;
    }

    .highlight-swiper .swiper-button-prev {
        left: calc(50% - 35px);
    }

    .highlight-swiper .swiper-button-next {
        right: calc(50% - 35px);
    }
	.immobilie-detail-title h2 {
		font-size: 30px;
	}	
	.dokumente-headline h3,
	.einheiten-headline h3 {
		font-size: 23px;
	}
    .dokumente-grid {
        grid-template-columns: 1fr;
    }
	
    .einheiten-table thead {
        display: none;
    }

    .einheiten-table,
    .einheiten-table tbody,
    .einheiten-table tr,
    .einheiten-table td {
        display: block;
        width: 100%;
    }
	.einheiten-table th,
	.einheiten-table td {
		width: 100% !important;
	}
    .einheit-row {
        margin-bottom: 20px;
        background: #fff;
        box-shadow: 0 0 10px rgba(95,105,110,0.1);
    }

	.einheiten-table tr {
		padding: 10px 15px;        
		border-bottom: 1px solid #eee;
		margin: 0 !important;
	}
	.einheiten-table tr.einheit-detail {
		padding: 10px 15px 30px;        
	}
	.einheiten-table tr.einheit-detail td{
		background-color:  transparent !important;
	}
    .einheiten-table td {
		border: none;
        padding: 0px;
        position: relative;
        text-align: left !important;
    }

    .einheiten-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 600;
        color: #5f696e;
        text-transform: uppercase;
        margin-bottom: 3px;
    }

    .einheiten-table td:last-child {
        border-bottom: none;
    }
	.einheit-dokumente {
		padding-top: 5px;
		justify-content: flex-start;
	}

    .einheiten-table .toggle {
        width: 100%;
        height: 40px;
        margin-top: 10px;
    }
	.badge {
		padding: 6px 20px;
		font-size: 12px;
	}
	.detail-media-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	
	
}

