/* Ingbau Connect – Suche (Aussehen wie «Ingbau Search» 2.1) */
.isb-wrap [hidden],.isr-wrap [hidden]{display:none!important}
/* ── Search Bar (Header-Toggle) ──────────────────────────────────── */
.isb-wrap {
    position: relative;
    display: inline-block;
    font-family: 'Urbanist', inherit;
}
.isb-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color .15s;
}
.isb-toggle:hover { color: #1a6dae; }
.isb-toggle svg { width: 22px; height: 22px; }

.isb-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 540px;
    max-width: 95vw;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    padding: 16px;
    z-index: 99999;
    animation: isb-fade .15s ease;
}
.isb-dropdown.isb-open { display: block; }
@keyframes isb-fade { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }

.isb-form { display: flex; gap: 10px; align-items: center; }

/* Suchfeld identisch zum Mitarbeiter-Suchfeld */
.isb-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.isb-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    display: flex;
    align-items: center;
    opacity: 0.6;
}
.isb-input-icon svg {
    width: 20px;
    height: 20px;
    stroke: #1a6dae;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.isb-input {
    width: 100%;
    padding: 13px 44px 13px 52px;
    border: 2px solid #c3c4c7;
    border-radius: 20px !important;
    font-size: 1em;
    font-family: 'Urbanist', inherit;
    color: #2c3338;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}
.isb-input:focus { outline: none; border-color: #1a6dae; box-shadow: 0 0 0 3px rgba(26,109,174,.12); }
.isb-input::placeholder { color: #bbb; }
.isb-input::-webkit-search-cancel-button,
.isb-input::-webkit-search-decoration { -webkit-appearance: none; }
.isb-input[type=search]::-ms-clear { display: none; }

.isb-clear {
    position: absolute;
    right: 12px;
    background: #e8e8e8;
    border: none;
    cursor: pointer;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    transition: background .15s;
}
.isb-clear:hover { background: #1a6dae; color: #fff; }

.isb-submit {
    padding: 12px 20px;
    background: #1a6dae;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-family: 'Urbanist', inherit;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}
.isb-submit:hover { background: #0f4c80; }

@media (max-width: 600px) {
    .isb-dropdown { right: auto; left: 50%; transform: translateX(-50%); }
    .isb-dropdown.isb-open { display: block; }
    .isb-form { flex-wrap: wrap; }
}

/* ── Search Results Page ─────────────────────────────────────────── */
.isr-wrap { font-family: 'Urbanist', inherit; max-width: 860px; }

.isr-form { margin-bottom: 24px; }
.isr-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.isr-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    opacity: 0.6;
}
.isr-input-icon svg {
    width: 20px;
    height: 20px;
    stroke: #1a6dae;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.isr-input {
    width: 100%;
    padding: 14px 48px 14px 52px;
    border: 2px solid #c3c4c7;
    border-radius: 20px !important;
    font-size: 1em;
    font-family: 'Urbanist', inherit;
    color: #2c3338;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}
.isr-input:focus { outline: none; border-color: #1a6dae; box-shadow: 0 0 0 3px rgba(26,109,174,.12); }
.isr-input::-webkit-search-cancel-button,
.isr-input::-webkit-search-decoration { -webkit-appearance: none; }
.isr-input[type=search]::-ms-clear { display: none; }
.isr-input::placeholder { color: #bbb; }
.isr-clear {
    position: absolute;
    right: 14px;
    background: #e8e8e8;
    border: none;
    cursor: pointer;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #666;
    transition: background .15s;
}
.isr-clear:hover { background: #1a6dae; color: #fff; }

.isr-status {
    font-size: 0.9em;
    color: #787c82;
    margin-bottom: 16px;
    font-style: italic;
}

.isr-section { margin-bottom: 32px; }
.isr-section-title {
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #aaa;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.isr-item {
    padding: 14px 16px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: border-color .15s;
    background: #fff;
}
.isr-item:hover { border-color: #000; }

.isr-item-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.isr-badge {
    font-size: 0.75em;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: .03em;
}
.isr-badge--employee { background: #e8f0fe; color: #1a6dae; }
.isr-badge--dept     { background: #f0f0f0; color: #555; }
.isr-badge--domain   { background: #f0f6fc; color: #1a6dae; }
.isr-badge--type     { background: #f5f5f5; color: #888; }

.isr-item-title {
    font-size: 1em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}
.isr-item-title a { color: #1a6dae; text-decoration: none; }
.isr-item-title a:hover { text-decoration: underline; }

/* Seiten & Beiträge: ganze Kachel klickbar (der Titel-Link wird über die Kachel gespannt) */
.isr-item--page { position: relative; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.isr-item--page .isr-item-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.isr-item--page:hover { box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.isr-item--page:hover .isr-item-title a { text-decoration: underline; }
.isr-item--page .isr-item-title a:focus, .isr-item--page .isr-item-title a:focus-visible { outline: none; box-shadow: none; }
.isr-item--page:has(a:focus-visible) { outline: 2px solid #1a6dae; outline-offset: 2px; }

.isr-item-subtitle { font-size: 0.88em; color: #666; margin-bottom: 6px; }
.isr-item-excerpt  { font-size: 0.88em; color: #555; margin-bottom: 6px; line-height: 1.5; }
.isr-item-url      { font-size: 0.78em; color: #aaa; }
.isr-item-url a    { color: #aaa; text-decoration: none; }
.isr-item-url a:hover { color: #1a6dae; }

.isr-item-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    font-size: 0.88em;
}
.isr-contact { display: flex; align-items: center; gap: 5px; }
.isr-contact strong { color: #1a6dae; font-weight: 700; width: 14px; }
.isr-contact a { color: #2c3338; text-decoration: none; }
.isr-contact a:hover { color: #1a6dae; }

@media (max-width: 600px) {
    .isr-item-contacts { flex-direction: column; gap: 6px; }
}
