/* =========================================================
   INDEX – ZUFALLSGESUCHE
   ========================================================= */

:root {
    --idxwant-bg: #211e1f;
    --idxwant-bg-soft: #272223;
    --idxwant-bg-hover: #2d2727;

    --idxwant-line: #3b3332;
    --idxwant-line-light: #4a3d38;

    --idxwant-accent: #d59b48;
    --idxwant-accent-soft: #bd8740;

    --idxwant-text: #f0ece7;
    --idxwant-muted: #aaa09a;
    --idxwant-dark-muted: #776e6a;
}


/* ---------------------------------------------------------
   GESAMTBEREICH
--------------------------------------------------------- */

.index-wanted {
    width: 100%;
    box-sizing: border-box;
    padding: 18px 10px 22px;
    background: var(--idxwant-bg);
    color: var(--idxwant-text);
}


/* ---------------------------------------------------------
   ÜBERSCHRIFT
--------------------------------------------------------- */

.index-wanted-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 0 4px 12px;
    margin-bottom: 1px;
    border-bottom: 1px solid var(--idxwant-line);
}

.index-wanted-headline {
    color: var(--idxwant-accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: normal;
    line-height: 1;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.index-wanted-subline {
    color: var(--idxwant-muted);
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: .2px;
}


/* ---------------------------------------------------------
   3-SPALTEN-LAYOUT
--------------------------------------------------------- */

.index-wanted-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--idxwant-line);
    border-bottom: 1px solid var(--idxwant-line);
}


/* ---------------------------------------------------------
   EINZELNES GESUCH
--------------------------------------------------------- */

.index-wanted-card {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    min-width: 0;
    min-height: 180px;
    box-sizing: border-box;
    background: var(--idxwant-bg);
    overflow: hidden;
    transition:
        background .2s ease,
        box-shadow .2s ease;
}

.index-wanted-card:hover {
    background: var(--idxwant-bg-hover);
    box-shadow: inset 0 2px 0 var(--idxwant-accent);
}


/* ---------------------------------------------------------
   NUMMER LINKS
--------------------------------------------------------- */

.index-wanted-number {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
    padding-top: 18px;
    border-right: 1px solid var(--idxwant-line);
    color: var(--idxwant-dark-muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 1px;
    transition: color .2s ease;
}

.index-wanted-card:hover .index-wanted-number {
    color: var(--idxwant-accent);
}


/* ---------------------------------------------------------
   INHALT
--------------------------------------------------------- */

.index-wanted-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
    padding: 17px 18px 15px;
}

.index-wanted-label {
    margin-bottom: 5px;
    color: var(--idxwant-accent-soft);
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   TITEL
--------------------------------------------------------- */

.index-wanted-title,
.index-wanted-title:link,
.index-wanted-title:visited {
    display: block;
    margin: 0 0 10px;
    padding: 0;
    color: var(--idxwant-accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.25;
    letter-spacing: .35px;
    text-decoration: none;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    transition: color .2s ease;
}

.index-wanted-title:hover,
.index-wanted-title:active {
    color: var(--idxwant-text);
}


/* ---------------------------------------------------------
   KURZBESCHREIBUNG
--------------------------------------------------------- */

.index-wanted-description {
    flex: 1;
    color: var(--idxwant-text);
    font-size: 10px;
    line-height: 1.5;
    text-align: left;
}


/* ---------------------------------------------------------
   FOOTER / AVATAR / LINK
--------------------------------------------------------- */

.index-wanted-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    padding-top: 9px;
    border-top: 1px solid var(--idxwant-line);
}

.index-wanted-avatar-label {
    color: var(--idxwant-dark-muted);
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.index-wanted-avatar {
    min-width: 0;
    color: var(--idxwant-muted);
    font-size: 9px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.index-wanted-link,
.index-wanted-link:link,
.index-wanted-link:visited {
    color: var(--idxwant-accent);
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .8px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.index-wanted-link:hover,
.index-wanted-link:active {
    color: var(--idxwant-text);
}

.index-wanted-link span {
    display: inline-block;
    margin-left: 2px;
    font-size: 13px;
    vertical-align: -1px;
}


/* ---------------------------------------------------------
   TABLET
--------------------------------------------------------- */

@media (max-width: 900px) {

    .index-wanted-grid {
        grid-template-columns: 1fr;
    }

    .index-wanted-card {
        min-height: 0;
    }

    .index-wanted-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 600px) {

    .index-wanted {
        padding: 16px 8px 20px;
    }

    .index-wanted-headline {
        font-size: 17px;
    }

    .index-wanted-subline {
        font-size: 12px;
    }

    .index-wanted-card {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .index-wanted-content {
        padding: 16px 14px 15px;
    }

    .index-wanted-title,
    .index-wanted-title:link,
    .index-wanted-title:visited {
        font-size: 16px;
        line-height: 1.3;
    }

    .index-wanted-description {
        font-size: 13px;
        line-height: 1.55;
    }

    .index-wanted-footer {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .index-wanted-avatar-label,
    .index-wanted-avatar,
    .index-wanted-link,
    .index-wanted-link:link,
    .index-wanted-link:visited {
        font-size: 10px;
    }

    .index-wanted-link {
        grid-column: 1 / -1;
        margin-top: 4px;
    }

}

.index-wanted-grid > br {
    display: none;
}