/* ==========================================================
   GRID
   ========================================================== */

.hg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 30px 0;
}

@media (max-width: 1024px) {
    .hg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hg-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   KARTE
   ========================================================== */

.hg-card {
    background: #ffffff;

    border-radius: 18px;
    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

    height: 100%;
}

.hg-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.hg-card-link {
    display: flex;
    flex-direction: column;

    height: 100%;

    text-decoration: none;
    color: inherit;
}


/* ==========================================================
   BILD
   ========================================================== */

.hg-card-image {
    position: relative;

    aspect-ratio: 3 / 2;

    overflow: hidden;
}

.hg-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.45s ease;
}

.hg-card:hover .hg-card-image img {
    transform: scale(1.05);
}


/* ==========================================================
   BADGE
   ========================================================== */

.hg-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 20;

    display: inline-flex;
    align-items: center;

    padding: 5px 10px;

    border-radius: 999px;

    color: #ffffff;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);

    backdrop-filter: blur(3px);
}


/* ==========================================================
   BADGE-FARBEN
   ========================================================== */

.hg-cat-sehenswert {
    background: rgba(211, 47, 47, 0.92);
}

.hg-cat-freizeit {
    background: rgba(251, 192, 45, 0.92);
    color: #222222;
}

.hg-cat-gastronomie {
    background: rgba(245, 124, 0, 0.92);
}

.hg-cat-uebernachten {
    background: rgba(13, 71, 161, 0.92);
}

.hg-cat-einkaufen {
    background: rgba(25, 118, 210, 0.92);
}


/* ==========================================================
   INHALT
   ========================================================== */

.hg-card-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 14px 16px 16px;
}

.hg-card-title {
    margin: 0 0 8px;

    font-size: 22px;
    line-height: 1.25;
}

.hg-card-text {
    margin: 0 0 18px;

    color: #666666;

    line-height: 1.6;

    display: -webkit-box;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* ==========================================================
   ENTFERNUNG + BARRIEREFREIHEIT
   ========================================================== */

.hg-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 6px;

    margin-top: auto;
    margin-bottom: 14px;
}

.hg-card-distance,
.hg-card-accessible,
.hg-card-partly-accessible,
.hg-card-not-accessible {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}


/* Entfernung */

.hg-card-distance {
    color: #5f6368;

    cursor: pointer;
}

.hg-card-distance:hover {
    color: #1e73be;
}


/* Barrierefreiheit */

.hg-card-accessible {
    color: #2e7d32;
}

.hg-card-partly-accessible {
    color: #ef6c00;
}

.hg-card-not-accessible {
    color: #737373;
}


/* ==========================================================
   MEHR ENTDECKEN
   ========================================================== */

.hg-card-more {
    margin-top: 0;

    color: #1e73be;

    font-weight: 700;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 768px) {
    .hg-card-title {
        font-size: 20px;
    }
}
/* ==========================================================
   Öffnungszeiten
   ========================================================== */
.hg-card-open,
.hg-card-closed {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.hg-card-open {
    color: #2e7d32;
}

.hg-card-closed {
    color: #737373;
}