/* ============================================================================
   Geburtshaus Münster — Links-Modul Frontend
   --------------------------------------------------------------------------
   Karten-Layout für die Partner-/Links-Seite. CI-Sage (#829995) für Icons,
   keine List-Style-Bullets, kein Standard-List-Padding.
   ========================================================================= */

/* Bullet-Punkte unterdrücken (Theme/Elementor setzen list-style:disc auf
   .content ul li u.a.). Nur die UL-Container bekommen 0-Padding/Margin,
   damit das Card-Padding nicht überschrieben wird. */
.ghm-links,
.ghm-links__contacts {
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.ghm-links li,
.ghm-links__item,
.ghm-links__contact {
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
}

.ghm-links li::marker,
.ghm-links__item::marker,
.ghm-links__contact::marker {
    content: none;
    display: none;
}

.ghm-links {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.ghm-links__item {
    border: 1px solid #e2e6e3;
    border-radius: 8px;
    /* Innenabstand zum Card-Rahmen — auch links/rechts/oben/unten greift */
    padding: 16px 18px !important;
    background: #fafbfa;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    margin: 0;
}

.ghm-links__item:hover {
    background: #f0f4f1;
    border-color: #c7d3c5;
}

.ghm-links__name {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    color: #333;
    margin-bottom: 4px;
}

.ghm-links__description {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.ghm-links__description p:last-child {
    margin-bottom: 0;
}

.ghm-links__contacts {
    margin: 0;
    padding: 0;
}

.ghm-links__contact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    font-size: 14px;
    margin: 0;
}

.ghm-links__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #829995; /* CI Sage */
    flex-shrink: 0;
    line-height: 1;
}

.ghm-links__icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.ghm-links__contact-link {
    color: #5a6967;
    text-decoration: none;
    word-break: break-word;
    line-height: 1.4;
}

.ghm-links__contact-link:hover {
    color: #333;
    text-decoration: underline;
}

/* Desktop: zwei Spalten ab ~720 px */
@media (min-width: 720px) {
    .ghm-links {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile: kompaktere Karten */
@media (max-width: 480px) {
    .ghm-links__item {
        padding: 12px 14px;
    }
    .ghm-links__name {
        font-size: 15px;
    }
}
