/* CSS für eine dreispaltige Darstellung direkt auf Item-Ebene */

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}
.attachment.ext-pdf a {
    padding-left: 2rem; /* oder z. B. 24px */
    display: inline-block;
}
.status {
    margin: 1rem 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.status .token {
    display: inline-block;
    background-color: #ccc;
    color: #000;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 0.4em 0.8em;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Farbvarianten basierend auf Statusklassen */
.token.verfuegbar {
    background-color: #28a745;
    color: white;
}

.token.reserviert {
    background-color: #ffc107;
    color: black;
}

.token.verkauft {
    background-color: #dc3545;
    color: white;
}
.btn-back {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.5em 1em;
    background-color: #eee;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-back:hover {
    background-color: #ddd;
}



/* Die Items selbst bekommen Float und Breitenangaben */
.real_estate_item_default {
    float: left;
    width: 31.333%;
    margin: 0 1% 30px 1%;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Clearfix für den Container, der die Items enthält */
.mod_realEstateList:after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive Anpassungen */
@media (max-width: 1200px) {
    .real_estate_item_default {
        width: 48%;
        margin: 0 1% 30px 1%;
    }
}

@media (max-width: 768px) {
    .real_estate_item_default {
        width: 98%;
        margin: 0 1% 30px 1%;
    }
}

/* Styling für die inneren Elemente bleibt gleich */
.real_estate_item_default .inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.real_estate_item_default .status {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.real_estate_item_default .status .token {
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 15px;
    background-color: #660000;
    color: white;
}

.real_estate_item_default .main-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.real_estate_item_default .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.real_estate_item_default .title {
    margin: 15px 0 10px;
    padding: 0 20px;
    height: 80px; /* Feste Höhe für den Titel */
    overflow: hidden;
}

.real_estate_item_default .title h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.real_estate_item_default a {
    text-decoration: none;
}

.real_estate_item_default .address {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
    padding: 0 20px;
}

.real_estate_item_default .main-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px;
    margin: 15px 0;
}

.real_estate_item_default .main-details .detail {
    display: flex;
    flex-direction: column;
    min-width: 80px;
}

.real_estate_item_default .main-details .detail .label {
    font-size: 12px;
    color: #777;
}

.real_estate_item_default .main-details .detail .value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.real_estate_item_default .bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-top: auto;
    border-top: 1px solid #eee;
}

.real_estate_item_default .main-price {
    display: flex;
    flex-direction: column;
}

.real_estate_item_default .main-price .value {
    font-size: 22px;
    font-weight: 700;
    color: #660000;
}

.real_estate_item_default .main-price .label {
    font-size: 12px;
    color: #777;
}

.real_estate_item_default .expose-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: #660000;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.real_estate_item_default .expose-link:hover {
    background-color: #4d0000;
}



/* Beschreibungstexte */
.detail-columns {
  display: flex;
  gap: 2rem;
  flex-wrap: nowrap; /* oder testweise auf wrap lassen */
}

.detail-columns > .left,
.detail-columns > .right {
  flex: 1 1 50%;
  box-sizing: border-box;
  min-width: 0; /* wichtig bei langen Inhalten */
}
.detail-columns .expose-module-immotexte {
  width: 100%;       /* statt 73% */
  margin-right: 0;
}


@media (max-width: 768px) {
  .detail-columns {
    flex-direction: column;
  }

  .detail-columns .left,
  .detail-columns .right {
    flex: 1 1 100%;
  }
}

/*Detail Style */

/* Stil für die Details-Überschrift */
.details-heading {
  font-size: 20px;
  margin-top: 20px;  /* Abstand zu Bildern o. Ä. */
  margin-bottom: 20px; /* schöner Abstand zu den Spalten */
  color: #333;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
  display: block;
  clear: both;
}


/* Stil für die Details-Container */
.details-container {
    margin-bottom: 30px;
}

/* Stil für Detail-Blöcke */
.details-container [class$="_block"] {
    margin-bottom: 25px;
}

/* Stil für einzelne Felder */
.details-container .field {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.details-container .field .label {
    font-size: 14px;
    color: #666;
    margin-bottom: 3px;
}

.details-container .field .value {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

/* Hauptpreis-Stil - ähnlich wie in der Listenansicht */
.main-price-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.main-price {
    display: flex;
    flex-direction: column;
}

.main-price .value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.main-price .label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .details-container {
        margin-top: 30px;
    }
}

