/* ===============================
   GASTRO GRID – BASIS
   =============================== */
.gastro-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -0.5%;
}

/* KACHEL */
.gastro-grid .listing-item-gastro {
    box-sizing: border-box;
    width: 24%;
    margin: 0.5%;
    border: 1px solid #057816;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* FOTO */
.gastrofoto-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin-bottom: 10px;
}

.gastrofoto-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* TEXT & INFO */
.gastro-info h4,
.gastro-info h5,
.gastro-info p {
    margin: 5px 0;
    line-height: 1.2;
}

.gastro-info p strong {
    font-weight: bold;
}

.gastro-beschreibung {
    margin: 5px 0;
}

/* LINIE */
hr {
    border: none;
    border-top: 1px solid #000;
    margin: 10px 0;
}

/* KONTAKT */
.gastro-contact p {
    margin: 5px 0;
    line-height: 1.3;
}

.gastro-contact a {
    color: #057816;
    text-decoration: none;
}

.gastro-contact a:hover {
    text-decoration: underline;
}

/* ===============================
   BUTTON – BASIS
   =============================== */
.btn-zur-website {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #057816;
    color: #fff; /* Schriftfarbe immer weiß */
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: none; /* Schriftfarbe nicht animieren */
}

/* BUTTON HOVER – weiße Linie von links nach rechts */
.btn-zur-website::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.btn-zur-website:hover::after {
    width: 100%; /* Linie slided über die gesamte Breite */
}

/* Schriftfarbe bleibt immer weiß */
.btn-zur-website:hover {
    color: #fff;
}

/* ===============================
   FEINSCHLIFF – Gleiche Höhe & Button unten
   =============================== */
.gastro-grid .listing-item-gastro {
    display: flex;
    flex-direction: column;
}

.gastro-grid .listing-item-gastro > .gastro-info,
.gastro-grid .listing-item-gastro > .gastro-beschreibung,
.gastro-grid .listing-item-gastro > .gastro-contact {
    flex-grow: 1; /* nimmt den verfügbaren Platz ein */
}

.gastro-grid .listing-item-gastro .btn-zur-website {
    margin-top: auto;
}

/* ===============================
   RESPONSIVE
   =============================== */
/* Tablet */
@media (max-width: 992px) {
    .gastro-grid .listing-item-gastro {
        width: 49%;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .gastro-grid .listing-item-gastro {
        width: 100%;
    }
}