/* ==========================================
   HART IT — Internal Linker Frontend v1.4
   ========================================== */

/* Auto-linked keywords */
.hartit-auto-link {
    color: var(--color-accent, #7c5cfc);
    text-decoration: none;
    border-bottom: 1px dashed var(--color-accent, #7c5cfc);
    transition: all 0.2s ease;
}
.hartit-auto-link:hover {
    border-bottom-style: solid;
    opacity: 0.85;
}

/* === Wrapper === */
.hartit-related-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 48px;
    position: relative;
}
.hartit-related-wrapper::before {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #7c5cfc, #a78bfa);
    border-radius: 2px;
    margin-bottom: 40px;
}

/* === Region Story Block === */
.hil-region-block {
    background: linear-gradient(135deg, rgba(124,92,252,0.05) 0%, rgba(124,92,252,0.01) 100%);
    border: 1px solid rgba(124,92,252,0.1);
    border-radius: 16px;
    padding: 32px 28px 28px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.hil-region-block::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(124,92,252,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hil-region-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #7c5cfc;
    margin-bottom: 14px;
}
.hil-region-label svg {
    width: 13px;
    height: 13px;
}

.hil-region-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 10px;
}

.hil-region-text {
    font-size: 0.92rem;
    color: #8b92a0;
    line-height: 1.65;
    margin-bottom: 20px;
}
.hil-region-text a {
    color: #a78bfa;
    text-decoration: none;
    border-bottom: 1px solid rgba(167,139,250,0.25);
    transition: all 0.2s;
}
.hil-region-text a:hover {
    color: #c4b5fd;
    border-bottom-color: #c4b5fd;
}

/* Location chips */
.hil-locations-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.hil-loc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 100px;
    color: #c0c6d0;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.hil-loc-chip:hover {
    background: rgba(124,92,252,0.08);
    border-color: rgba(124,92,252,0.25);
    color: #fff;
    transform: translateY(-1px);
}

.hil-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #7c5cfc;
    flex-shrink: 0;
}

/* === Bottom Grid: Services + Branches === */
.hil-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.hil-bottom-grid.hil-single-col {
    grid-template-columns: 1fr;
    max-width: 400px;
}

.hil-card-group {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 20px;
}

.hil-card-group-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4e5563;
    margin-bottom: 10px;
}

.hil-card-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hil-card-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 9px;
    text-decoration: none;
    color: #a8b0c0;
    font-size: 0.86rem;
    font-weight: 500;
    transition: all 0.15s ease;
}
.hil-card-link:hover {
    background: rgba(124,92,252,0.07);
    color: #fff;
}

/* SVG icon containers */
.hil-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hil-icon svg {
    width: 15px;
    height: 15px;
}
.hil-icon-dienst {
    background: rgba(59,130,246,0.08);
    color: #60a5fa;
}
.hil-icon-dienst svg {
    stroke: #60a5fa;
}
.hil-icon-branche {
    background: rgba(234,179,8,0.08);
    color: #facc15;
}
.hil-icon-branche svg {
    stroke: #facc15;
}

.hil-arrow {
    margin-left: auto;
    opacity: 0;
    color: #7c5cfc;
    font-size: 0.8rem;
    transition: opacity 0.15s;
}
.hil-card-link:hover .hil-arrow {
    opacity: 1;
}

/* === Responsive === */
@media (max-width: 600px) {
    .hil-bottom-grid {
        grid-template-columns: 1fr;
    }
    .hil-region-block {
        padding: 24px 20px 20px;
    }
    .hil-region-title {
        font-size: 1.15rem;
    }
}
